Love Builder - Love2D Packaging Bash Script

Showcase your libraries, tools and other projects that help your fellow love users.
Post Reply
squishyu
Prole
Posts: 4
Joined: Thu Jun 11, 2020 1:32 pm

Love Builder - Love2D Packaging Bash Script

Post 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.
hoistbypetard
Prole
Posts: 26
Joined: Fri May 22, 2020 7:00 pm

Re: Love Builder - Love2D Packaging Bash Script

Post 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.
squishyu
Prole
Posts: 4
Joined: Thu Jun 11, 2020 1:32 pm

Re: Love Builder - Love2D Packaging Bash Script

Post by squishyu »

I'm glad you found my tool useful. Feel free to do so.
squishyu
Prole
Posts: 4
Joined: Thu Jun 11, 2020 1:32 pm

Re: Love Builder - Love2D Packaging Bash Script

Post by squishyu »

Well, you can now supply the Love folders using environment variables.
Anase Skyrider
Prole
Posts: 16
Joined: Sun Jan 31, 2021 12:47 am

Re: Love Builder - Love2D Packaging Bash Script

Post by Anase Skyrider »

Inspired by this post, I made a .bat alternative.
https://love2d.org/forums/viewtopic.php ... 49#p238749
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests