Skip to content

Commit

Permalink
Better fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sieniven committed Dec 19, 2023
1 parent 2b9fb55 commit 5e2a567
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions make.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 5e2a567

Please sign in to comment.