From 5732613664263f05d53662ec26603b318f8b464a Mon Sep 17 00:00:00 2001 From: Baoqi Wu Date: Mon, 29 May 2023 16:00:17 +0800 Subject: [PATCH] add build_release scripts --- build_releases.sh | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100755 build_releases.sh diff --git a/build_releases.sh b/build_releases.sh new file mode 100755 index 0000000..867921b --- /dev/null +++ b/build_releases.sh @@ -0,0 +1,24 @@ +echo "build for mac amd64" +GOOS=darwin GOARCH=amd64 go build -o pocketbi main.go +zip -r pocketbi_mac_amd64.zip pocketbi pb_public/* +rm pocketbi + +echo "build for mac arm64" +GOOS=darwin GOARCH=arm64 go build -o pocketbi main.go +zip -r pocketbi_mac_arm64.zip pocketbi pb_public/* +rm pocketbi + +echo "build for linux amd64" +GOOS=linux GOARCH=amd64 go build -o pocketbi main.go +zip -r pocketbi_linux_amd64.zip pocketbi pb_public/* +rm pocketbi + +echo "build for linux arm64" +GOOS=linux GOARCH=arm64 go build -o pocketbi main.go +zip -r pocketbi_linux_arm64.zip pocketbi pb_public/* +rm pocketbi + +echo "build for windows amd64" +GOOS=windows GOARCH=amd64 go build -o pocketbi.exe main.go +zip -r pocketbi_windows_amd64.zip pocketbi.exe pb_public/* +rm pocketbi.exe