Skip to content

Commit c2af9e6

Browse files
committed
Add build.sh script to build executables for multiple os
1 parent 10dcfc4 commit c2af9e6

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
.idea
22
*.exe
3-
xplane-gateway-downloader
3+
xplane-gateway-downloader
4+
bin/

build.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/bin/bash
2+
3+
# Build .exe for windows
4+
GOOS=windows GOARCH=amd64 go build -o bin/xplane-gateway-downloader-windows.exe .
5+
6+
# Build for mac 32-bit
7+
#GOOS=darwin GOARCH=386 go build -o bin/xplane-gateway-downloader-386-darwin .
8+
9+
# Build for mac 64-bit
10+
GOOS=darwin GOARCH=amd64 go build -o bin/xplane-gateway-downloader-amd64-darwin .
11+
12+
# Build for linux 32-bit
13+
GOOS=linux GOARCH=386 go build -o bin/xplane-gateway-downloader-386-linux .
14+
15+
# Build for linux 64-bit
16+
GOOS=linux GOARCH=amd64 go build -o bin/xplane-gateway-downloader-amd64-linux .

0 commit comments

Comments
 (0)