SuperTux: removed hgacks to save space

This commit is contained in:
Sergii Pylypenko
2018-06-29 23:02:49 +03:00
parent e700d64cfb
commit d98d33b244
4 changed files with 12 additions and 8 deletions

View File

@@ -252,7 +252,7 @@ APP_PLATFORM=
# Specify architectures to compile, 'all' or 'y' to compile for all architectures.
# Available architectures: armeabi armeabi-v7a x86 mips arm64-v8a
MultiABI='armeabi-v7a' # x86 x86_64 arm64-v8a'
MultiABI='armeabi-v7a x86 x86_64 arm64-v8a'
# Optional shared libraries to compile - removing some of them will save space
# MP3 support by libMAD is encumbered by patents and libMAD is GPL-ed

View File

@@ -1,6 +0,0 @@
#!/bin/sh
# Reduce .apk file size, at the expense of overlay key themes
cp -f ../../../res/raw/ultimatedroid.raw ../../../res/raw/dualshock.raw
cp -f ../../../res/raw/ultimatedroid.raw ../../../res/raw/n64.raw
cp -f ../../../res/raw/ultimatedroid.raw ../../../res/raw/sun.raw

View File

@@ -0,0 +1,10 @@
#!/bin/sh
OUT=`pwd`/../../../../SuperTux-with-data.apk
rm -f $OUT $OUT-aligned
cp ../../../../project/app/build/outputs/apk/app-release.apk $OUT || exit 1
cd supertux/data || exit 1
zip -r -9 $OUT * || exit 1
zipalign 4 $OUT $OUT-aligned || exit 1
apksigner sign --ks ~/.android/debug.keystore --ks-key-alias androiddebugkey --ks-pass pass:android $OUT-aligned || exit 1
mv $OUT-aligned $OUT