build script added

This commit is contained in:
Алексей Костин 2020-02-22 16:00:26 +03:00
parent 438bb360c0
commit 35fe683ece
2 changed files with 7 additions and 0 deletions

1
.gitignore vendored
View File

@ -1 +1,2 @@
.idea .idea
bt2qbt_v*

6
build.sh Executable file
View File

@ -0,0 +1,6 @@
#!/bin/bash
GOOS=windows GOACH=amd64 go build -o bt2qbt_v${1}_amd64.exe
GOOS=linux GOARCH=amd64 go build -o bt2qbt_v${1}_amd64_linux
GOOS=darwin GOARCH=amd64 go build -o bt2qbt_v${1}_amd64_macos
GOOS=linux GOARCH=386 go build -o bt2qbt_v${1}_i386_linux
GOOS=linux GOARCH=386 go build -o bt2qbt_v${1}_i386.exe