Skip to content

Commit 923aeaa

Browse files
Generate debug symbols for releases & use compressed native lib for APKs (#77)
1 parent 060b659 commit 923aeaa

2 files changed

Lines changed: 18 additions & 10 deletions

File tree

.github/workflows/build.yml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ jobs:
9898
run: |
9999
cd godot
100100
scons p=android arch=arm32 ${BUILD_OPTIONS} target=template_debug
101-
scons p=android arch=arm64 ${BUILD_OPTIONS} target=template_debug generate_apk=yes
101+
scons p=android arch=arm64 ${BUILD_OPTIONS} target=template_debug generate_android_binaries=yes
102102
mkdir -p ~/.local/share/godot/export_templates/${GODOT_VERSION}.${GODOT_RELEASE}/
103103
mv ./bin/android_debug.apk ~/.local/share/godot/export_templates/${GODOT_VERSION}.${GODOT_RELEASE}/android_debug.apk
104104
mv ./bin/android_source.zip ~/.local/share/godot/export_templates/${GODOT_VERSION}.${GODOT_RELEASE}/android_source.zip
@@ -107,10 +107,10 @@ jobs:
107107
name: Build Godot release template for Android
108108
run: |
109109
cd godot
110-
scons p=android arch=x86_32 ${BUILD_OPTIONS} target=template_release
111-
scons p=android arch=x86_64 ${BUILD_OPTIONS} target=template_release
112-
scons p=android arch=arm32 ${BUILD_OPTIONS} target=template_release
113-
scons p=android arch=arm64 ${BUILD_OPTIONS} target=template_release generate_apk=yes
110+
scons p=android arch=x86_32 ${BUILD_OPTIONS} target=template_release debug_symbols=yes
111+
scons p=android arch=x86_64 ${BUILD_OPTIONS} target=template_release debug_symbols=yes
112+
scons p=android arch=arm32 ${BUILD_OPTIONS} target=template_release debug_symbols=yes
113+
scons p=android arch=arm64 ${BUILD_OPTIONS} target=template_release debug_symbols=yes separate_debug_symbols=yes generate_android_binaries=yes
114114
mkdir -p ~/.local/share/godot/export_templates/${GODOT_VERSION}.${GODOT_RELEASE}/
115115
mv ./bin/android_release.apk ~/.local/share/godot/export_templates/${GODOT_VERSION}.${GODOT_RELEASE}/android_release.apk
116116
mv ./bin/android_source.zip ~/.local/share/godot/export_templates/${GODOT_VERSION}.${GODOT_RELEASE}/android_source.zip
@@ -176,3 +176,11 @@ jobs:
176176
path: vectortouch/artifacts/VectorTouch.aab
177177
if-no-files-found: ignore
178178
retention-days: 28
179+
180+
- name: Upload debug symbols
181+
uses: actions/upload-artifact@v4
182+
with:
183+
name: native_debug_symbols.zip
184+
path: godot/bin/android-template-release-native-symbols.zip
185+
if-no-files-found: ignore
186+
retention-days: 28

export_presets.cfg

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ custom_template/release=""
2525
gradle_build/use_gradle_build=true
2626
gradle_build/gradle_build_directory=""
2727
gradle_build/android_source_template=""
28-
gradle_build/compress_native_libraries=false
28+
gradle_build/compress_native_libraries=true
2929
gradle_build/export_format=0
3030
gradle_build/min_sdk=""
3131
gradle_build/target_sdk=""
@@ -37,8 +37,8 @@ architectures/armeabi-v7a=true
3737
architectures/arm64-v8a=true
3838
architectures/x86=false
3939
architectures/x86_64=false
40-
version/code=7
41-
version/name="1.0-alpha4"
40+
version/code=11
41+
version/name="1.0-alpha5-dev"
4242
package/unique_name="com.vectortouch.app"
4343
package/name="VectorTouch"
4444
package/signed=true
@@ -262,8 +262,8 @@ architectures/armeabi-v7a=true
262262
architectures/arm64-v8a=true
263263
architectures/x86=true
264264
architectures/x86_64=true
265-
version/code=7
266-
version/name="1.0-alpha4"
265+
version/code=11
266+
version/name="1.0-alpha5-dev"
267267
package/unique_name="com.vectortouch.app"
268268
package/name="VectorTouch"
269269
package/signed=true

0 commit comments

Comments
 (0)