Help with exporting to an APK on a phone

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
snibo
Prole
Posts: 23
Joined: Sat May 04, 2024 6:56 am

Help with exporting to an APK on a phone

Post 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.
User avatar
Gunroar:Cannon()
Party member
Posts: 1142
Joined: Thu Dec 10, 2020 1:57 am

Re: Help with exporting to an APK on a phone

Post 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.
The risk I took was calculated,
but man, am I bad at math.

-How to be saved and born again :huh:
Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 17 guests