-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.sh
executable file
·24 lines (17 loc) · 1006 Bytes
/
build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/env bash
mkdir build
APP="balancebadge"
xgo --targets=darwin/amd64 --dest=build -ldflags="-X main.VERSION=$VERSION" ./
xgo --targets=darwin/386 --dest=build -ldflags="-X main.VERSION=$VERSION" ./
xgo --targets=linux/amd64 --dest=build -ldflags="-X main.VERSION=$VERSION" ./
xgo --targets=linux/386 --dest=build -ldflags="-X main.VERSION=$VERSION" ./
xgo --targets=windows-6.0/amd64 --dest=build -ldflags="-X main.VERSION=$VERSION" ./
xgo --targets=windows-6.0/386 --dest=build -ldflags="-X main.VERSION=$VERSION" ./
xgo --targets=linux/arm-7 --dest=build -ldflags="-X main.VERSION=$VERSION" ./
xgo --targets=linux/arm64 --dest=build -ldflags="-X main.VERSION=$VERSION" ./
mv build/$APP-darwin-10.6-amd64 build/$APP-osx-x64
mv build/$APP-darwin-10.6-386 build/$APP-osx-x32
mv build/$APP-linux-amd64 build/$APP-linux-x64
mv build/$APP-linux-386 build/$APP-linux-x32
mv build/$APP-windows-6.0-amd64.exe build/$APP-windows-x64.exe
mv build/$APP-windows-6.0-386.exe build/$APP-windows-x32.exe