From 1069ae996a72ec9af249107a4e89f57f602788f1 Mon Sep 17 00:00:00 2001 From: DuProcess <273172371+DuProcess@users.noreply.github.com> Date: Thu, 16 Jul 2026 21:22:39 -0400 Subject: [PATCH] Support Windows ARM64 release packaging --- scripts/package-release.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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