From 86923ffdabf4ba62939c5e0d85082a97af34cde5 Mon Sep 17 00:00:00 2001 From: dengsgo Date: Thu, 4 Apr 2019 14:44:43 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=20build=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mac-build-all | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 mac-build-all diff --git a/mac-build-all b/mac-build-all new file mode 100755 index 0000000..72922bb --- /dev/null +++ b/mac-build-all @@ -0,0 +1,12 @@ +export CGO_ENABLED=0 +export GOARCH=amd64 +export GOOS=darwin +go build -ldflags "-s -w" -o fileboy-darwin-amd64.bin +echo darwin ok +export GOOS=linux +go build -ldflags "-s -w" -o fileboy-linux-amd64.bin +echo linux ok +export GOOS=windows +go build -ldflags "-s -w" -o fileboy-windows-amd64.exe +echo windows ok +