Added Mac OS X cross-compilation to release script (only SDL).
This commit is contained in:
parent
8264942602
commit
1ae7e9ebe4
@ -11,8 +11,8 @@ version_safe=${version//\./_}
|
||||
|
||||
echo "Creating ${version} release"
|
||||
|
||||
|
||||
rm -rf build/linux*
|
||||
rm -rf build/macosx*
|
||||
rm -rf build/windows*
|
||||
|
||||
mkdir -p build/release
|
||||
@ -35,6 +35,14 @@ zip -9 -q ../release/botanim_allegro_${version_safe}_linux_amd64.zip *
|
||||
echo "Created Linux (Allegro) release: build/release/botanim_allegro_${version_safe}_linux_amd64.zip"
|
||||
cd ../..
|
||||
|
||||
mkdir -p build/macosx
|
||||
CGO_ENABLED=1 CC=o64-clang CXX=o64-clang++ GOOS=darwin GOARCH=amd64 go build -tags static -ldflags "-s -w" -o build/macosx/botanim ../cmd/tins2020
|
||||
cp ../README.md build/macosx
|
||||
cd build/macosx
|
||||
zip -9 -q ../release/botanim_${version_safe}_macosx_amd64.zip *
|
||||
echo "Created Mac OS X release: build/release/botanim_${version_safe}_macosx_amd64.zip"
|
||||
cd ../..
|
||||
|
||||
mkdir -p build/windows
|
||||
CGO_ENABLED=1 CC=x86_64-w64-mingw32-gcc GOOS=windows GOARCH=amd64 go build -tags static -ldflags "-s -w" -o build/windows/botanim.exe ../cmd/tins2020
|
||||
cp ../README.md build/windows
|
||||
|
Loading…
Reference in New Issue
Block a user