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
How to create a signed APP with STARTDEV
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
-
- Prole
- Posts: 23
- Joined: Sat Jun 17, 2017 1:23 pm
How to create a signed APP with STARTDEV
Last edited by dj--alex@ya.ru on Mon May 20, 2019 12:42 pm, edited 1 time in total.
Re: How to create a signed APP with STARTDEV
Why must one have Linux?
-
- Prole
- Posts: 23
- Joined: Sat Jun 17, 2017 1:23 pm
Re: How to create a signed APP with STARTDEV
I forgot one thing:
modified make-apk.sh with comments #
https://pastebin.com/P1Zssh2s
I ADD 2 LINES to set compactiblity to GOOGLE PLAY
# This line allows adding APK (API 26 recommended)
# second line - just version number of YOUR application. change 0.5.4369 to your version. If you don't do this you always get version 0.9.2
There's a lines with name application. Name must have at least one point like m2k.game, com.example.android or etc.
If you don't change name your game named "love.to.android.2349783248734532"
i still don't done ideal script.
When i done i upload them
=========
to Drikdrok
i don't write scripts for windows, and i don't use windows. it spyware and unsafe Os.
Write if you want.
modified make-apk.sh with comments #
https://pastebin.com/P1Zssh2s
I ADD 2 LINES to set compactiblity to GOOGLE PLAY
# This line allows adding APK (API 26 recommended)
# second line - just version number of YOUR application. change 0.5.4369 to your version. If you don't do this you always get version 0.9.2
Code: Select all
# replace id, name and src subdir
sed -i "s/18/26/g" tools/love-android-sdl2/AndroidManifest.xml
sed -i "s/0.9.2/0.5.4369/g" tools/love-android-sdl2/AndroidManifest.xml
If you don't change name your game named "love.to.android.2349783248734532"
Code: Select all
sed -i "s/loveToAndroid Game/M2K game/g" tools/love-android-sdl2/AndroidManifest.xml
sed -i "s/love.to.android/m2k\.game/g" tools/love-android-sdl2/AndroidManifest.xml
sed -i "s/love.to.android/m2k\.game/g" tools/love-android-sdl2/src/love/to/android/LtaActivity.java
mv tools/love-android-sdl2/src/love/to/android tools/love-android-sdl2/src/m2k.game
When i done i upload them
=========
to Drikdrok
i don't write scripts for windows, and i don't use windows. it spyware and unsafe Os.
Write if you want.
Re: How to create a signed APP with STARTDEV
¯\_(ツ)_/¯dj--alex@ya.ru wrote: ↑Sat Jul 28, 2018 2:53 pm to Drikdrok
i don't write scripts for windows, and i don't use windows. it spyware and unsafe Os.
Write if you want.
-
- Prole
- Posts: 23
- Joined: Sat Jun 17, 2017 1:23 pm
Who is online
Users browsing this forum: Ahrefs [Bot], Bing [Bot] and 10 guests