Page 1 of 1

Help with exporting to an APK on a phone

Posted: Tue Nov 12, 2024 10:13 pm
by snibo
So for context, I do not have a computer but I managed to learn and make games on love2d on my phone and everything is going well with this and I am even down to making my first "real" game.

However I got some problems wanting to turn those games to apk files that way I can share them to my friends and the internet without bothering with installing the love2d app and having the right file mannager ...etc

the only thing is that I haven't figured out a way to do that, because the traditional procedure requires to download a lot of really heavy files and use a bunch of terminal commands which would be a pain to do on a phone and would be too complicated to do on someone else's machine.

I found a trick that requires to unzip the love2d apk that you download from the website and past the game.love file in the assets folder then use an app to change the metadata but after trying all day it seems to not be working with the latest version of löve.

So please if you know any other way that I could try or maybe provide me with a blank apk where I can just past my game.love file I would be glad, and maybe tell me the flaws of doing that cheesy trick that I have talked about because it does look suspicious.

Re: Help with exporting to an APK on a phone

Posted: Mon Nov 18, 2024 9:44 pm
by Gunroar:Cannon()
You can use github actions to automatically build an apk.

* First get a GitHub account,

* Then clone love-android respitory,

* Follow the instructions on the page to upload game.love (may need to use an older branch as love 12 doesn't support just uploading the love file and instead the actual contents, which can be bothersome on a phone depending on how large your project is. But it has the advantages of not needing to upload a new love file if your game is larger everytime you make a small change and instead just, say, editting screens.lua.)

* Go to actions tab, it will show a build in process.


* When the build is done download the artifact apk zip. Use apk signer for android. Sign the apk (debug or not debug, doesn't matter I think) and install.