mlm-games / asteroids-revenge

A endless highscore based game
https://ragebreaker.itch.io
GNU General Public License v3.0
8 stars 1 forks source link

Game size is too big. May be because of Debug build ? #3

Open Ammar64 opened 2 days ago

Ammar64 commented 2 days ago

I saw the game apk and I find it to be too big for this game.

I looked into to it to find that

When you build the debug variant the debug symbols are included in the compiled code making the game bigger

mlm-games commented 1 day ago
      - scons -j `nproc` platform=linuxbsd target=editor
      - scons -j `nproc` platform=android target=template_release arch=arm64
      - cd platform/android/java
      - gradle generateGodotTemplates
      - popd
      - sed -i -e 's:\(^.*package/signed\)\s*=.*$:\1 = false:' export_presets.cfg
      - sed -i -e '/custom_template\/release/s|=.*|="$$Godot$$/bin/android_release.apk"|'
        export_presets.cfg
      - $$Godot$$/bin/godot.linuxbsd.editor.x86_64 --headless --import
      - export GODOT_CFG=$(ls ~/.config/godot/editor_settings-*.tres)
      - sed -i -e "s:\(^.*java_sdk_path\)\s*=.*$:\1 = "$JAVA_HOME":" $GODOT_CFG
      - sed -i -e 's:\(^.*android_sdk_path\)\s*=.*$:\1 = "$$SDK$$":' $GODOT_CFG
      - $$Godot$$/bin/godot.linuxbsd.editor.x86_64 --headless --export-release 'Android
        arm64' asteroids_revenge.apk

This is how its being built for F-Droid so i do not think its due to it being a debug variant

Also the github releases' apk is also a release build as a debug build normally shows up with a star in apps like app manager and also describes it as an debug app which it does not for my apk. Maybe it is caused by something else?

Ammar64 commented 1 day ago

Maybe app is not flagged as debug but the apk contains so much debug stuff.

You might have been building the release variant with debug symbols which will still increase app size.

mlm-games commented 1 day ago

Um i am not sure, is there a way to exclude debug symbols?