Skip to content

Commit

Permalink
Add build.sh script to build executables for multiple os
Browse files Browse the repository at this point in the history
  • Loading branch information
xEtarusx committed Jun 11, 2022
1 parent 10dcfc4 commit c2af9e6
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.idea
*.exe
xplane-gateway-downloader
xplane-gateway-downloader
bin/
16 changes: 16 additions & 0 deletions build.sh
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 .

0 comments on commit c2af9e6

Please sign in to comment.