Page 1 of 1

Love Builder - Love2D Packaging Bash Script

Posted: Sat Jun 13, 2020 8:49 am
by squishyu
Love Builder is a command line tool used for easily packaging Love games for Windows, Mac and Linux.
What separates it from the other distribution tools is the ability to change icons of .exe files, AppImage Linux support and being easy to use.
You're gonna need Linux (potentially Windows Subsystem for Linux) to run this script.

For changing .exe icons, please make sure you have Wine installed.

Usage
  • Make the script executable

    Code: Select all

    chmod +x build.sh
  • Run the script

    Code: Select all

    ./build.sh <path_to_love_file>
    Or

    Code: Select all

    ./build.sh <path_to_love_file> [path_to_icon]
  • Enjoy
    Your packages get put into a folder called build.
Download here

Github Repository

If you think the tool is missing any features, please let me know.

Re: Love Builder - Love2D Packaging Bash Script

Posted: Sat Jun 13, 2020 9:24 pm
by hoistbypetard
Thanks for sharing this. You just saved me the trouble of making my own version for Linux. (I had already put together some scripts that weren't quite as nice for Mac and Windows.)

I couldn't find a way to do replace the windows icon without wine and ResHack either. It looks like there is probably a way to do it with windres and the mingw binutils, but installing that isn't really any less painful than wine and reshack.

If I send a pull request that lets the built love trees be specified in environment variables but defaults to current behavior if none are specified, would you be interested in merging it?

I think that's how I'm going to run it, since I need 11.3 and don't want the git tree to perpetually have conflicting local changes.

Re: Love Builder - Love2D Packaging Bash Script

Posted: Sat Jun 13, 2020 11:01 pm
by squishyu
I'm glad you found my tool useful. Feel free to do so.

Re: Love Builder - Love2D Packaging Bash Script

Posted: Sun Jun 14, 2020 9:47 am
by squishyu
Well, you can now supply the Love folders using environment variables.

Re: Love Builder - Love2D Packaging Bash Script

Posted: Sat Feb 20, 2021 3:50 am
by Anase Skyrider
Inspired by this post, I made a .bat alternative.
https://love2d.org/forums/viewtopic.php ... 49#p238749