diff --git a/.gitignore b/.gitignore index dbdd335..b6b2598 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ .idea *.exe -xplane-gateway-downloader \ No newline at end of file +xplane-gateway-downloader +bin/ \ No newline at end of file diff --git a/build.sh b/build.sh new file mode 100644 index 0000000..20a38d1 --- /dev/null +++ b/build.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +# Build .exe for windows +GOOS=windows GOARCH=amd64 go build -o bin/xplane-gateway-downloader-windows.exe . + +# Build for mac 32-bit +#GOOS=darwin GOARCH=386 go build -o bin/xplane-gateway-downloader-386-darwin . + +# Build for mac 64-bit +GOOS=darwin GOARCH=amd64 go build -o bin/xplane-gateway-downloader-amd64-darwin . + +# Build for linux 32-bit +GOOS=linux GOARCH=386 go build -o bin/xplane-gateway-downloader-386-linux . + +# Build for linux 64-bit +GOOS=linux GOARCH=amd64 go build -o bin/xplane-gateway-downloader-amd64-linux .