From 357c0f2c0a37d08e97774965a703e39d440b2cee Mon Sep 17 00:00:00 2001 From: Nuno Cruces Date: Sat, 22 May 2021 11:55:52 +0100 Subject: [PATCH] Build for Apple silicon. --- cmd/zenity/build.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cmd/zenity/build.sh b/cmd/zenity/build.sh index 42f300b..275c091 100755 --- a/cmd/zenity/build.sh +++ b/cmd/zenity/build.sh @@ -8,6 +8,11 @@ zip -9 zenity_win32.zip zenity.exe GOOS=windows GOARCH=amd64 go build -ldflags="-s -w" -trimpath && zip -9 zenity_win64.zip zenity.exe +rm resource.syso + +GOOS=darwin GOARCH=arm64 go build -ldflags="-s -w" -trimpath && +zip -9 zenity_macos_arm.zip zenity + GOOS=darwin GOARCH=amd64 go build -ldflags="-s -w" -trimpath && zip -9 zenity_macos.zip zenity