mirror of
https://github.com/godotengine/godot-build-scripts.git
synced 2026-01-05 06:11:49 +03:00
Merge pull request #101 from m4gr3d/main
Update the Android editor build scripts
This commit is contained in:
@@ -37,22 +37,22 @@ if [ "${CLASSICAL}" == "1" ]; then
|
|||||||
pushd platform/android/java
|
pushd platform/android/java
|
||||||
# Generate the regular Android editor.
|
# Generate the regular Android editor.
|
||||||
./gradlew generateGodotEditor
|
./gradlew generateGodotEditor
|
||||||
# Generate the Android editor for Meta devices.
|
# Generate the Android editor for HorizonOS devices.
|
||||||
./gradlew generateGodotMetaEditor
|
./gradlew generateGodotHorizonOSEditor
|
||||||
popd
|
popd
|
||||||
|
|
||||||
mkdir -p /root/out/tools
|
mkdir -p /root/out/tools
|
||||||
# Copy the generated Android editor binaries (apk & aab).
|
# Copy the generated Android editor binaries (apk & aab).
|
||||||
if [ "$store_release" == "yes" ]; then
|
if [ "$store_release" == "yes" ]; then
|
||||||
cp bin/android_editor_builds/android_editor-google-release.apk /root/out/tools/android_editor.apk
|
cp bin/android_editor_builds/android_editor-android-release.apk /root/out/tools/android_editor.apk
|
||||||
cp bin/android_editor_builds/android_editor-google-release.aab /root/out/tools/android_editor.aab
|
cp bin/android_editor_builds/android_editor-android-release.aab /root/out/tools/android_editor.aab
|
||||||
# For the Meta build, we only copy the apk.
|
# For the HorizonOS build, we only copy the apk.
|
||||||
cp bin/android_editor_builds/android_editor-meta-release.apk /root/out/tools/android_editor_meta.apk
|
cp bin/android_editor_builds/android_editor-horizonos-release.apk /root/out/tools/android_editor_horizonos.apk
|
||||||
else
|
else
|
||||||
cp bin/android_editor_builds/android_editor-google-debug.apk /root/out/tools/android_editor.apk
|
cp bin/android_editor_builds/android_editor-android-debug.apk /root/out/tools/android_editor.apk
|
||||||
cp bin/android_editor_builds/android_editor-google-debug.aab /root/out/tools/android_editor.aab
|
cp bin/android_editor_builds/android_editor-android-debug.aab /root/out/tools/android_editor.aab
|
||||||
# For the Meta build, we only copy the apk.
|
# For the HorizonOS build, we only copy the apk.
|
||||||
cp bin/android_editor_builds/android_editor-meta-debug.apk /root/out/tools/android_editor_meta.apk
|
cp bin/android_editor_builds/android_editor-horizonos-debug.apk /root/out/tools/android_editor_horizonos.apk
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Restart from a clean tarball, as we'll copy all the contents
|
# Restart from a clean tarball, as we'll copy all the contents
|
||||||
|
|||||||
@@ -366,8 +366,8 @@ if [ "${build_classical}" == "1" ]; then
|
|||||||
# Editor
|
# Editor
|
||||||
binname="${godot_basename}_android_editor.apk"
|
binname="${godot_basename}_android_editor.apk"
|
||||||
cp out/android/tools/android_editor.apk ${reldir}/${binname}
|
cp out/android/tools/android_editor.apk ${reldir}/${binname}
|
||||||
binname="${godot_basename}_android_editor_meta.apk"
|
binname="${godot_basename}_android_editor_horizonos.apk"
|
||||||
cp out/android/tools/android_editor_meta.apk ${reldir}/${binname}
|
cp out/android/tools/android_editor_horizonos.apk ${reldir}/${binname}
|
||||||
binname="${godot_basename}_android_editor.aab"
|
binname="${godot_basename}_android_editor.aab"
|
||||||
cp out/android/tools/android_editor.aab ${reldir}/${binname}
|
cp out/android/tools/android_editor.aab ${reldir}/${binname}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user