github.com/glide-im/glide@v1.6.0/build/build-windows-amd64.sh (about) 1 cd ../cmd/im_service || exit 2 3 export CGO_ENABLED=0 4 export GOOS=windows 5 export GOHOSTOS=windows 6 export GOARCH=amd64 7 8 echo 'build...' 9 go build -o im_service.exe 10 echo 'build complete' 11 cp ../../config/config.toml config.toml 12 tar -czvf ./im_service_windows_amd64.tar.gz im_service.exe config.toml 13 rm config.toml 14 rm im_service 15 read -p 'complete.'