Skip to content

Commit d5ba16c

Browse files
authored
Merge pull request #51 from godotengine/android-editor
2 parents 45abfae + 5955997 commit d5ba16c

File tree

2 files changed

+36
-8
lines changed

2 files changed

+36
-8
lines changed

build-android/build.sh

Lines changed: 28 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,16 @@ java --version
2222
if [ "${CLASSICAL}" == "1" ]; then
2323
echo "Starting classical build for Android..."
2424

25+
$SCONS platform=android android_arch=arm64v8 $OPTIONS tools=yes target=release_debug
26+
$SCONS platform=android android_arch=x86_64 $OPTIONS tools=yes target=release_debug
27+
28+
pushd platform/android/java
29+
./gradlew generateGodotEditor
30+
popd
31+
32+
mkdir -p /root/out/tools
33+
cp bin/android_editor.apk /root/out/tools/
34+
2535
$SCONS platform=android android_arch=armv7 $OPTIONS tools=no target=release_debug
2636
$SCONS platform=android android_arch=armv7 $OPTIONS tools=no target=release
2737

@@ -39,10 +49,10 @@ if [ "${CLASSICAL}" == "1" ]; then
3949
popd
4050

4151
mkdir -p /root/out/templates
42-
cp bin/android_source.zip /root/out/templates
43-
cp bin/android_debug.apk /root/out/templates/android_debug.apk
44-
cp bin/android_release.apk /root/out/templates/android_release.apk
45-
cp bin/godot-lib.release.aar /root/out/templates/godot-lib.release.aar
52+
cp bin/android_source.zip /root/out/templates/
53+
cp bin/android_debug.apk /root/out/templates/
54+
cp bin/android_release.apk /root/out/templates/
55+
cp bin/godot-lib.release.aar /root/out/templates/
4656
fi
4757

4858
# Mono
@@ -54,6 +64,16 @@ if [ "${MONO}" == "1" ]; then
5464
cp -r /root/mono-glue/GodotSharp/GodotSharp/Generated modules/mono/glue/GodotSharp/GodotSharp/
5565
cp -r /root/mono-glue/GodotSharp/GodotSharpEditor/Generated modules/mono/glue/GodotSharp/GodotSharpEditor/
5666

67+
#$SCONS platform=android android_arch=arm64v8 $OPTIONS $OPTIONS_MONO mono_prefix=/root/mono-installs/android-arm64-v8a-release tools=yes target=release_debug
68+
#$SCONS platform=android android_arch=x86_64 $OPTIONS $OPTIONS_MONO mono_prefix=/root/mono-installs/android-x86_64-release tools=yes target=release_debug
69+
70+
#pushd platform/android/java
71+
#./gradlew generateGodotEditor
72+
#popd
73+
74+
#mkdir -p /root/out/tools-mono
75+
#cp bin/android_editor.apk /root/out/tools-mono/
76+
5777
$SCONS platform=android android_arch=armv7 $OPTIONS $OPTIONS_MONO mono_prefix=/root/mono-installs/android-armeabi-v7a-release tools=no target=release_debug
5878
$SCONS platform=android android_arch=armv7 $OPTIONS $OPTIONS_MONO mono_prefix=/root/mono-installs/android-armeabi-v7a-release tools=no target=release
5979

@@ -71,10 +91,10 @@ if [ "${MONO}" == "1" ]; then
7191
popd
7292

7393
mkdir -p /root/out/templates-mono
74-
cp bin/android_source.zip /root/out/templates-mono
75-
cp bin/android_debug.apk /root/out/templates-mono/android_debug.apk
76-
cp bin/android_release.apk /root/out/templates-mono/android_release.apk
77-
cp bin/godot-lib.release.aar /root/out/templates-mono/godot-lib.release.aar
94+
cp bin/android_source.zip /root/out/templates-mono/
95+
cp bin/android_debug.apk /root/out/templates-mono/
96+
cp bin/android_release.apk /root/out/templates-mono/
97+
cp bin/godot-lib.release.aar /root/out/templates-mono/
7898

7999
mkdir -p /root/out/templates-mono/bcl
80100
cp -r /root/mono-installs/android-bcl/* /root/out/templates-mono/bcl/

build-release.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,10 @@ if [ "${build_classical}" == "1" ]; then
284284
# Lib for direct download
285285
cp out/android/templates/godot-lib.release.aar ${reldir}/godot-lib.${templates_version}.release.aar
286286

287+
# Editor
288+
binname="${godot_basename}_android_editor.apk"
289+
cp out/android/tools/android_editor.apk ${reldir}/${binname}
290+
287291
# Templates
288292
cp out/android/templates/*.apk ${templatesdir}/
289293
cp out/android/templates/android_source.zip ${templatesdir}/
@@ -489,6 +493,10 @@ if [ "${build_mono}" == "1" ]; then
489493
# Lib for direct download
490494
cp out/android/templates-mono/godot-lib.release.aar ${reldir_mono}/godot-lib.${templates_version}.mono.release.aar
491495

496+
# Editor
497+
#binname="${godot_basename}_mono_android_editor.apk"
498+
#cp out/android/tools-mono/android_editor.apk ${reldir_mono}/${binname}
499+
492500
# Templates
493501
cp out/android/templates-mono/*.apk ${templatesdir_mono}/
494502
cp out/android/templates-mono/android_source.zip ${templatesdir_mono}/

0 commit comments

Comments
 (0)