Simple vbscript-and-folder trick to package Love
Posted: Wed Apr 27, 2022 8:22 am
You can run a Love app by simply dragging a folder onto love.exe, no need to make an archive.
https://i.imgur.com/OsmYnbP.mp4
Since the exe only needs path to directory, you can simply use vbscript to launch a relative path, and package the game into a loose directory like so:
https://love2d.org/imgmirrur/ZSDUctx.html
This makes any sort of modding or dynamic asset addition much easier to do since you don't need to re-archive all the game files.
Then, if your game is distributed through Steam, you can simply make the Steam shortcut point to launching the vbscript file directly to abstract it all away from the player.
I've attached a sample package here to showcase the simple directory structure using a modded version of Hydrogen Maniac's amazing Lead Haul game
https://i.imgur.com/OsmYnbP.mp4
Since the exe only needs path to directory, you can simply use vbscript to launch a relative path, and package the game into a loose directory like so:
https://love2d.org/imgmirrur/ZSDUctx.html
This makes any sort of modding or dynamic asset addition much easier to do since you don't need to re-archive all the game files.
Then, if your game is distributed through Steam, you can simply make the Steam shortcut point to launching the vbscript file directly to abstract it all away from the player.
I've attached a sample package here to showcase the simple directory structure using a modded version of Hydrogen Maniac's amazing Lead Haul game