From 828102067b4dd5ab80bf28d7186b9491c6d691b9 Mon Sep 17 00:00:00 2001 From: Nuno Cruces Date: Mon, 2 May 2022 16:05:42 +0100 Subject: [PATCH] Trim binaries. --- cmd/zenity/build.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/zenity/build.sh b/cmd/zenity/build.sh index fbda411..0447477 100755 --- a/cmd/zenity/build.sh +++ b/cmd/zenity/build.sh @@ -5,16 +5,16 @@ echo 'package main; const tag = "'$TAG'"' > tag.go go run github.com/josephspurrier/goversioninfo/cmd/goversioninfo -GOOS=windows GOARCH=386 CGO_ENABLED=0 go build -trimpath && +GOOS=windows GOARCH=386 CGO_ENABLED=0 go build -ldflags="-s -w" -trimpath && zip -9 zenity_win32.zip zenity.exe -GOOS=windows GOARCH=amd64 CGO_ENABLED=0 go build -trimpath && +GOOS=windows GOARCH=amd64 CGO_ENABLED=0 go build -ldflags="-s -w" -trimpath && zip -9 zenity_win64.zip zenity.exe rm resource.syso -GOOS=darwin GOARCH=amd64 CGO_ENABLED=0 go build -trimpath -o zenity_macos_x64 && -GOOS=darwin GOARCH=arm64 CGO_ENABLED=0 go build -trimpath -o zenity_macos_arm && +GOOS=darwin GOARCH=amd64 CGO_ENABLED=0 go build -ldflags="-s -w" -trimpath -o zenity_macos_x64 && +GOOS=darwin GOARCH=arm64 CGO_ENABLED=0 go build -ldflags="-s -w" -trimpath -o zenity_macos_arm && go run github.com/randall77/makefat zenity zenity_macos_x64 zenity_macos_arm && zip -9 zenity_macos.zip zenity