diff --git a/scripts/package-release.sh b/scripts/package-release.sh index 421b8cf..1eebd1c 100755 --- a/scripts/package-release.sh +++ b/scripts/package-release.sh @@ -35,6 +35,7 @@ if [ -z "$target" ] && [ "$os" = "windows" ]; then if [ "$host_os" != "windows" ]; then case "$arch" in x86_64) target="x86_64-pc-windows-gnu" ;; + aarch64) target="aarch64-pc-windows-gnullvm" ;; *) echo "set DOSH_PACKAGE_TARGET for windows/$arch" >&2; exit 1 ;; esac elif [ "$arch" != "$host_arch" ]; then @@ -111,7 +112,9 @@ strip_bin() { [ -f "$file" ] || return 0 case "$file" in *.exe) - if command -v x86_64-w64-mingw32-strip >/dev/null 2>&1; then + if [ "${target:-}" = "aarch64-pc-windows-gnullvm" ] && command -v llvm-strip >/dev/null 2>&1; then + llvm-strip "$file" 2>/dev/null || true + elif command -v x86_64-w64-mingw32-strip >/dev/null 2>&1; then x86_64-w64-mingw32-strip "$file" 2>/dev/null || true elif command -v strip >/dev/null 2>&1; then strip "$file" 2>/dev/null || true