Skip to content

Commit 37876d4

Browse files
authored
Merge pull request #82 from godotengine/dotnet-android
.NET: Add support for Android builds
2 parents 21af2c7 + 9f25cec commit 37876d4

File tree

2 files changed

+11
-13
lines changed

2 files changed

+11
-13
lines changed

build-android/build.sh

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,7 @@ fi
8888

8989
# Mono
9090

91-
# No Android support with .NET 6 yet.
92-
#if [ "${MONO}" == "1" ]; then
93-
if false; then
91+
if [ "${MONO}" == "1" ]; then
9492
echo "Starting Mono build for Android..."
9593

9694
cp -r /root/mono-glue/GodotSharp/GodotSharp/Generated modules/mono/glue/GodotSharp/GodotSharp/
@@ -115,7 +113,7 @@ if false; then
115113
cp bin/android_source.zip /root/out/templates-mono/
116114
cp bin/android_debug.apk /root/out/templates-mono/
117115
cp bin/android_release.apk /root/out/templates-mono/
118-
cp bin/godot-lib.release.aar /root/out/templates-mono/
116+
cp bin/godot-lib.template_release.aar /root/out/templates-mono/
119117
fi
120118

121119
echo "Android build successful"

build-release.sh

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -490,6 +490,15 @@ if [ "${build_mono}" == "1" ]; then
490490
rm -rf macos_template.app
491491
sign_macos_template ${templatesdir_mono} 1
492492

493+
## Android (Mono) ##
494+
495+
# Lib for direct download
496+
cp out/android/templates-mono/godot-lib.template_release.aar ${reldir_mono}/godot-lib.${templates_version}.mono.template_release.aar
497+
498+
# Templates
499+
cp out/android/templates-mono/*.apk ${templatesdir_mono}/
500+
cp out/android/templates-mono/android_source.zip ${templatesdir_mono}/
501+
493502
# No .NET support for those platforms yet.
494503

495504
if false; then
@@ -500,15 +509,6 @@ if [ "${build_mono}" == "1" ]; then
500509
cp out/web/templates-mono/godot.web.template_debug.wasm32.mono.zip ${templatesdir_mono}/web_debug.zip
501510
cp out/web/templates-mono/godot.web.template_release.wasm32.mono.zip ${templatesdir_mono}/web_release.zip
502511

503-
## Android (Mono) ##
504-
505-
# Lib for direct download
506-
cp out/android/templates-mono/godot-lib.template_release.aar ${reldir_mono}/godot-lib.${templates_version}.mono.template_release.aar
507-
508-
# Templates
509-
cp out/android/templates-mono/*.apk ${templatesdir_mono}/
510-
cp out/android/templates-mono/android_source.zip ${templatesdir_mono}/
511-
512512
## iOS (Mono) ##
513513

514514
rm -rf ios_xcode

0 commit comments

Comments
 (0)