build.bat 388 B

12345678910111213141516171819202122
  1. set GO111MODULE=on
  2. set GOARCH=386
  3. set GOOS=windows
  4. go clean
  5. go build -ldflags="-s -w" -a -o TMRWatchComm.exe
  6. set GOARCH=amd64
  7. set GOOS=windows
  8. go clean
  9. go build -ldflags="-s -w" -a -o TMRWatchComm64.exe
  10. set GOARCH=amd64
  11. set GOOS=linux
  12. go clean
  13. go build -ldflags="-s -w" -a -o TMRWatchComm
  14. set GOARCH=arm
  15. set GOOS=linux
  16. go clean
  17. go build -ldflags="-s -w" -a -o TMRWatchCommArm
  18. pause