Skip to content

Commit fa404f8

Browse files
authored
Add support for Android editor builds for Meta devices (#100)
1 parent c3d199c commit fa404f8

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

build-android/build.sh

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,17 +35,24 @@ if [ "${CLASSICAL}" == "1" ]; then
3535
$SCONS platform=android arch=x86_64 $OPTIONS target=editor store_release=${store_release}
3636

3737
pushd platform/android/java
38+
# Generate the regular Android editor.
3839
./gradlew generateGodotEditor
40+
# Generate the Android editor for Meta devices.
41+
./gradlew generateGodotMetaEditor
3942
popd
4043

4144
mkdir -p /root/out/tools
4245
# Copy the generated Android editor binaries (apk & aab).
4346
if [ "$store_release" == "yes" ]; then
44-
cp bin/android_editor_builds/android_editor-release.apk /root/out/tools/android_editor.apk
45-
cp bin/android_editor_builds/android_editor-release.aab /root/out/tools/android_editor.aab
47+
cp bin/android_editor_builds/android_editor-google-release.apk /root/out/tools/android_editor.apk
48+
cp bin/android_editor_builds/android_editor-google-release.aab /root/out/tools/android_editor.aab
49+
# For the Meta build, we only copy the apk.
50+
cp bin/android_editor_builds/android_editor-meta-release.apk /root/out/tools/android_editor_meta.apk
4651
else
47-
cp bin/android_editor_builds/android_editor-debug.apk /root/out/tools/android_editor.apk
48-
cp bin/android_editor_builds/android_editor-debug.aab /root/out/tools/android_editor.aab
52+
cp bin/android_editor_builds/android_editor-google-debug.apk /root/out/tools/android_editor.apk
53+
cp bin/android_editor_builds/android_editor-google-debug.aab /root/out/tools/android_editor.aab
54+
# For the Meta build, we only copy the apk.
55+
cp bin/android_editor_builds/android_editor-meta-debug.apk /root/out/tools/android_editor_meta.apk
4956
fi
5057

5158
# Restart from a clean tarball, as we'll copy all the contents

build-release.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -366,6 +366,8 @@ if [ "${build_classical}" == "1" ]; then
366366
# Editor
367367
binname="${godot_basename}_android_editor.apk"
368368
cp out/android/tools/android_editor.apk ${reldir}/${binname}
369+
binname="${godot_basename}_android_editor_meta.apk"
370+
cp out/android/tools/android_editor_meta.apk ${reldir}/${binname}
369371
binname="${godot_basename}_android_editor.aab"
370372
cp out/android/tools/android_editor.aab ${reldir}/${binname}
371373

0 commit comments

Comments
 (0)