-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5854bd9
commit 8a6fce5
Showing
3 changed files
with
29 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 |
---|---|---|
|
@@ -7,4 +7,5 @@ __* | |
*~ | ||
LaTeX | ||
*.prof | ||
record* | ||
record* | ||
*.zip |
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 @@ | ||
#!/bin/bash | ||
|
||
# Delete records | ||
rm -rf record_* |
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,26 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
if [ $# -eq 0 ] ; then | ||
echo "No version title provided" | ||
exit 1 | ||
fi | ||
|
||
echo "Compiling for Linux..." | ||
export GOOS=linux GOARCH=amd64 | ||
go build -o Anaxim | ||
|
||
zip_name_linux="Anaxim-$1-linux.zip" | ||
echo "Zipping to $zip_name_linux..." | ||
zip -r "$zip_name_linux" Anaxim Maps/ | ||
|
||
echo "Compiling for Windows..." | ||
export GOOS=windows GOARCH=amd64 CGO_ENABLED=1 | ||
# Using zig because mingw sucks, and so does windows | ||
export CC="zig cc -target x86_64-windows" | ||
export CXX="zig c++ -target x86_64-windows" | ||
go build -o Anaxim.exe | ||
|
||
zip_name_win="Anaxim-$1-windows.zip" | ||
echo "Zipping to $zip_name_win..." | ||
zip -r "$zip_name_win" Anaxim.exe Maps/ |