Skip to content

Commit

Permalink
rename dir
Browse files Browse the repository at this point in the history
  • Loading branch information
IoTServ committed Sep 22, 2017
1 parent 28a3d02 commit 31d48cc
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions mcunode/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
#Ubuntu test ok,install upx,set :
PATH="$HOME/go1.9/go/bin:$HOME/bin:$HOME/.local/bin:$PATH"
export GOPATH="$HOME/go"


env CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -ldflags "-s -w" -o ./mcunode_darwin_amd64
env CGO_ENABLED=0 GOOS=linux GOARCH=386 go build -ldflags "-s -w" -o ./mcunode_linux_386
env CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags "-s -w" -o ./mcunode_linux_amd64
env CGO_ENABLED=0 GOOS=linux GOARCH=arm go build -ldflags "-s -w" -o ./mcunode_linux_arm
env CGO_ENABLED=0 GOOS=windows GOARCH=386 go build -ldflags "-s -w" -o ./mcunode_windows_386.exe
env CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -ldflags "-s -w" -o ./mcunode_windows_amd64.exe
env CGO_ENABLED=0 GOOS=linux GOARCH=mips64 go build -ldflags "-s -w" -o ./mcunode_linux_mips64
env CGO_ENABLED=0 GOOS=linux GOARCH=mips64le go build -ldflags "-s -w" -o ./mcunode_linux_mips64le
env CGO_ENABLED=0 GOOS=linux GOARCH=mips go build -ldflags "-s -w" -o ./mcunode_linux_mips
env CGO_ENABLED=0 GOOS=linux GOARCH=mipsle go build -ldflags "-s -w" -o ./mcunode_linux_mipsle

upx ./mcunode_darwin_amd64
upx ./mcunode_linux_386
upx ./mcunode_linux_amd64
upx ./mcunode_linux_arm
upx ./mcunode_windows_386.exe
upx ./mcunode_windows_amd64.exe
upx ./mcunode_linux_mips64
upx ./mcunode_linux_mips64le
upx ./mcunode_linux_mips
upx ./mcunode_linux_mipsle

tar czvf mcunode_darwin_amd64.tar.gz views static mcunode_darwin_amd64
tar czvf mcunode_linux_386.tar.gz views static mcunode_linux_386
tar czvf mcunode_linux_amd64.tar.gz views static mcunode_linux_amd64
tar czvf mcunode_linux_arm.tar.gz views static mcunode_linux_arm
tar czvf mcunode_windows_386.tar.gz views static mcunode_windows_386.exe
tar czvf mcunode_windows_amd64.tar.gz views static mcunode_windows_amd64.exe
tar czvf mcunode_linux_mips64.tar.gz views static mcunode_linux_mips64
tar czvf mcunode_linux_mips64le.tar.gz views static mcunode_linux_mips64le
tar czvf mcunode_linux_mips.tar.gz views static mcunode_linux_mips
tar czvf mcunode_linux_mipsle.tar.gz views static mcunode_linux_mipsle

0 comments on commit 31d48cc

Please sign in to comment.