This Powershell program will automate some manual steps needed for APK generation on Windows. You need to have https://github.com/love2d/love-android setup for this to work.
Right click the file and chose run with Powershell
- It will check if there is a app-embed-debug.apk, app-embed-release-unsigned.apk and game.love, If that's the case it will remove them.
- It will compress your game in a zipfile.
- It will rename the zip to game.love.
- It will run the build command
./gradlew assembleEmbedfor building an APK file.
- Make sure your folder point to where you installed https://github.com/love2d/love-android for
$loveAndroidPath - Change $gameSource to where your game is located (for example
"D:\Documents\Programming\Lua\Games\Numbergame\*").
I'm not a Powerhsell expert so feel free to add to this.