Last active
July 9, 2025 13:15
-
-
Save WolfgangSenff/49e7509cb48c7ac26eb776209475bc3d to your computer and use it in GitHub Desktop.
Build script for entire Android stack on a Mac for Godot 3.x
This file contains hidden or 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
#!/bin/bash | |
# Build engine | |
scons platform=osx arch=arm64 | |
# Build Android code | |
scons platform=android target=release android_arch=armv7 | |
scons platform=android target=release_debug android_arch=armv7 | |
scons platform=android target=release android_arch=arm64v8 | |
scons platform=android target=release_debug android_arch=arm64v8 | |
scons platform=android target=release android_arch=x86 | |
scons platform=android target=release_debug android_arch=x86 | |
scons platform=android target=release android_arch=x86_64 | |
scons platform=android target=release_debug android_arch=x86_64 | |
# Build Android templates - will make a "FAT" apk as templates | |
pushd platform/android/java | |
./gradlew generateGodotTemplates | |
popd | |
# Optionally run the created executable | |
./bin/godot.osx.tools.arm64 | |
# Do not forget that, if you run this and want to use it immediately, you have to delete your installed Android Build Template and load it from the generated android_source.zip file in bin, not to mention copy the template files to the correct place, or use them as custom templates in your export preset. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment