From 924fa398f8a24f4f754aa40644b1a40b8ee58ae6 Mon Sep 17 00:00:00 2001 From: Nuno Cruces Date: Sat, 26 Mar 2022 00:20:21 +0000 Subject: [PATCH] Homebrew binaries. --- cmd/zenity/build.sh | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/cmd/zenity/build.sh b/cmd/zenity/build.sh index 7ae543c..4d3f7c5 100755 --- a/cmd/zenity/build.sh +++ b/cmd/zenity/build.sh @@ -5,19 +5,20 @@ TAG=$(git tag --sort=-version:refname | head -n 1) go run github.com/josephspurrier/goversioninfo/cmd/goversioninfo GOOS=windows GOARCH=386 go build -ldflags="-s -w -X main.tag=$TAG" -trimpath && -zip -9 zenity_win32.zip zenity.exe && -rm zenity.exe +zip -9 zenity_win32.zip zenity.exe GOOS=windows GOARCH=amd64 go build -ldflags="-s -w -X main.tag=$TAG" -trimpath && -zip -9 zenity_win64.zip zenity.exe && -rm zenity.exe +zip -9 zenity_win64.zip zenity.exe rm resource.syso GOOS=darwin GOARCH=amd64 go build -ldflags="-s -w -X main.tag=$TAG" -trimpath -o zenity_macos_x64 && GOOS=darwin GOARCH=arm64 go build -ldflags="-s -w -X main.tag=$TAG" -trimpath -o zenity_macos_arm && go run github.com/randall77/makefat zenity zenity_macos_x64 zenity_macos_arm && -zip -9 zenity_macos.zip zenity && -rm zenity zenity_macos_* +zip -9 zenity_macos.zip zenity + +zip -9 zenity_brew.zip zenity zenity.exe + +rm zenity zenity_macos_* zenity.exe go build -tags dev