-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add build.sh script to build executables for multiple os
- Loading branch information
Showing
2 changed files
with
18 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
.idea | ||
*.exe | ||
xplane-gateway-downloader | ||
xplane-gateway-downloader | ||
bin/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 . |