Skip to content

Commit

Permalink
Set correct path
Browse files Browse the repository at this point in the history
  • Loading branch information
Bushstar committed Dec 11, 2023
1 parent f1e39d8 commit 56ecab8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions make.sh
Original file line number Diff line number Diff line change
Expand Up @@ -241,8 +241,10 @@ package() {
echo "> packaging: ${pkg_name} from ${versioned_build_dir}"

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

0 comments on commit 56ecab8

Please sign in to comment.