Skip to content

Commit

Permalink
CI: Clean up win-x64 package pipeline (#2755)
Browse files Browse the repository at this point in the history
* Better fix

* Remove whitespace
  • Loading branch information
sieniven authored Jan 5, 2024
1 parent 02444df commit e3e9d59
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions make.sh
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ package() {
local pkg_path
if [[ "$target" == "x86_64-w64-mingw32" ]]; then
pkg_path="$(_canonicalize "${build_dir}/${pkg_name}.zip")"
else
else
pkg_path="$(_canonicalize "${build_dir}/${pkg_name}.tar.gz")"
fi

Expand All @@ -241,11 +241,8 @@ package() {
echo "> packaging: ${pkg_name} from ${versioned_build_dir}"

if [[ "$target" == "x86_64-w64-mingw32" ]]; then
_ensure_enter_dir "${versioned_build_dir}"
cd ..
local dir_to_zip
dir_to_zip=$(basename "${versioned_build_dir}")
zip -r "${pkg_path}" "${dir_to_zip}/"
_ensure_enter_dir "${build_dir}"
zip -r "${pkg_path}" "$(basename "${versioned_build_dir}")"
else
_ensure_enter_dir "${versioned_build_dir}"
_tar --transform "s,^./,${versioned_name}/," -czf "${pkg_path}" ./*
Expand Down

0 comments on commit e3e9d59

Please sign in to comment.