-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce simple script for cross-compiling to different OS and arch
Signed-off-by: ATechnoHazard <[email protected]>
- Loading branch information
ATechnoHazard
committed
Jun 16, 2019
1 parent
242afaa
commit 11f8a2d
Showing
2 changed files
with
37 additions
and
0 deletions.
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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#!/bin/bash | ||
|
||
# Build linux targets | ||
echo "Building for linux" | ||
|
||
echo "Building x86_64" | ||
env GOOS=linux GOARCH=amd64 go build -o build/ginko_linux_x86_64 | ||
|
||
echo "Building x86" | ||
env GOOS=linux GOARCH=386 go build -o build/ginko_linux_x86 | ||
|
||
echo "Building arm" | ||
env GOOS=linux GOARCH=arm go build -o build/ginko_linux_arm | ||
|
||
echo "Building arm64" | ||
env GOOS=linux GOARCH=arm64 go build -o build/ginko_linux_arm64 | ||
|
||
# Build windows targets | ||
echo | ||
echo "Building for windows" | ||
|
||
echo "Building x86_64" | ||
env GOOS=windows GOARCH=amd64 go build -o build/ginko_win_x86_64.exe | ||
|
||
echo "Building x86" | ||
env GOOS=windows GOARCH=386 go build -o build/ginko_win_x86.exe | ||
|
||
# Build mac targets | ||
echo | ||
echo "Building for MacOS" | ||
|
||
echo "Building x86_64" | ||
env GOOS=darwin GOARCH=amd64 go build -o build/ginko_darwin_x86_64 | ||
|
||
echo "Building x86" | ||
env GOOS=darwin GOARCH=386 go build -o build/ginko_darwin_x86 |
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 |
---|---|---|
|
@@ -2,4 +2,5 @@ BOT_API_KEY= | |
BOT_NAME= | ||
OWNER_USERNAME= | ||
OWNER_ID= | ||
DATABASE_URI= | ||
SUDO_USERS= |