From edae87f2a0c02ca06f2ec96ece5f1c7ec02ecbc8 Mon Sep 17 00:00:00 2001 From: kolaente Date: Tue, 24 Feb 2026 14:40:20 +0100 Subject: [PATCH] fix(release): skip upx compression for windows arm64 binaries UPX 5.0.0 does not support win64/arm64, causing CantPackException and failing the release build. --- magefile.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/magefile.go b/magefile.go index 6c51df546..6f95fb01f 100644 --- a/magefile.go +++ b/magefile.go @@ -1016,7 +1016,8 @@ func (Release) Compress(ctx context.Context) error { if strings.Contains(info.Name(), "mips") || strings.Contains(info.Name(), "s390x") || strings.Contains(info.Name(), "riscv64") || - strings.Contains(info.Name(), "darwin") { + strings.Contains(info.Name(), "darwin") || + (strings.Contains(info.Name(), "windows") && strings.Contains(info.Name(), "arm64")) { // not supported by upx return nil }