How to create a signed APP with STARTDEV
Posted: Fri Jul 27, 2018 8:34 pm
Unfortunately Startdev authors support ONLY LOVE 10.2 NO 11 version.
https://qubodup.itch.io/startgamedev - is a FAST utility can create APK from .love files.
0. Edit make-apk and change DEBUG to release !
ant release - must be written in end of file
and latest line must have
cp bin/love_android_sdl2-release-unsigned.apk
1.
sh make-apk.sh
2.
zipalign -v -p 4 m2k-Android-compile-ras0ft-b.apk m2k-Android-compile-ras0ft-b4369-unsigned-aligned.apk
3. TYLKO 1 RAZ (do it only once)
keytool -genkey -v -keystore my-release-key.jks -keyalg RSA -keysize 2048 -validity 10000 -alias my-alias
4.
/home/user/Android/Sdk/build-tools/28.0.1/apksigner sign --ks my-release-key.jks --out M2k-Android-ras0ft-b4369-release.apk m2k-Android-compile-ras0ft-b4369-unsigned-aligned.apk
You must have installed android studio SDK in your home/user folder.
How to automate this?
add lines 2 and 4 to end of make-apk and you get some like this.
cp bin/love_android_sdl2-release-unsigned.apk ../../m2k-Android-compile-ras0ft-b.apk -- ORIGINAL LINE
cd /home/user/F/Work/RemakingM2K/m2k-Android-compile-ras0ft-b/ --ADDED LINES
zipalign -v -p 4 m2k-Android-compile-ras0ft-b.apk m2k-Android-compile-ras0ft-b-unsigned-aligned.apk
/home/user/Android/Sdk/build-tools/28.0.1/apksigner sign --ks my-release-key.jks --out M2k-Android-ras0ft-b-release.apk m2k-Android-compile-ras0ft-b-unsigned-aligned.apk
Of course you must have
1)Linux
2) Android studio ( by default /home/%username%/Android path)
3)Don't delete your key ! my-release-key.jks
=============
check used names.
script search "m2ktest.love" , i do it for me. If you use game.love compiler cannot do anything
you must change it to your "love" name
or rename your app,it doesn't matter - its temporary name for apk.
you can change apk name after encoding process
https://qubodup.itch.io/startgamedev - is a FAST utility can create APK from .love files.
0. Edit make-apk and change DEBUG to release !
ant release - must be written in end of file
and latest line must have
cp bin/love_android_sdl2-release-unsigned.apk
1.
sh make-apk.sh
2.
zipalign -v -p 4 m2k-Android-compile-ras0ft-b.apk m2k-Android-compile-ras0ft-b4369-unsigned-aligned.apk
3. TYLKO 1 RAZ (do it only once)
keytool -genkey -v -keystore my-release-key.jks -keyalg RSA -keysize 2048 -validity 10000 -alias my-alias
4.
/home/user/Android/Sdk/build-tools/28.0.1/apksigner sign --ks my-release-key.jks --out M2k-Android-ras0ft-b4369-release.apk m2k-Android-compile-ras0ft-b4369-unsigned-aligned.apk
You must have installed android studio SDK in your home/user folder.
How to automate this?
add lines 2 and 4 to end of make-apk and you get some like this.
cp bin/love_android_sdl2-release-unsigned.apk ../../m2k-Android-compile-ras0ft-b.apk -- ORIGINAL LINE
cd /home/user/F/Work/RemakingM2K/m2k-Android-compile-ras0ft-b/ --ADDED LINES
zipalign -v -p 4 m2k-Android-compile-ras0ft-b.apk m2k-Android-compile-ras0ft-b-unsigned-aligned.apk
/home/user/Android/Sdk/build-tools/28.0.1/apksigner sign --ks my-release-key.jks --out M2k-Android-ras0ft-b-release.apk m2k-Android-compile-ras0ft-b-unsigned-aligned.apk
Of course you must have
1)Linux
2) Android studio ( by default /home/%username%/Android path)
3)Don't delete your key ! my-release-key.jks
=============
check used names.
script search "m2ktest.love" , i do it for me. If you use game.love compiler cannot do anything
you must change it to your "love" name
or rename your app,it doesn't matter - its temporary name for apk.
you can change apk name after encoding process