Skip to content

squishyu/love-builder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Love Builder

Love2D packaging script

This script generates zip files containing your packaged game for Windows, Linux and MacOS. Currently the script comes included with Love2D 0.10.2, however you can supply your own Love versions.

Usage

Make sure to make script executable

chmod +x build.sh

Run the script

./build.sh <path_to_love_file>

or

./build.sh <path_to_love_file> [path_to_icon]

Enjoy

Archives get put into a build folder.

Notes

You can supply your own appimagetool and AppRun file.

appimagetool needs be placed in a directory named appimagetool or be installed and accessible from PATH. The AppRun file needs to be placed at the root of the repository.

If any of these files are missing, they get downloaded from the AppImageKit repository.

Icons

Sure was a pain. To change icons of a .exe a Windows program called Resource Hacker is needed, which requires Wine to run on Linux. Before the icon can be changed, ImageMagick needs to convert the .png you supplied to a .ico file.

My tool does all of that, just make sure you have Wine installed.

Supplying your own Love version

For Windows, you can get the binaries here

For Linux, check out the wiki

For MacOS get your preffered version here

Once you've got your binaries, you can supply them to the script using environment variables.

export LOVE_WIN32_PATH="<path_to_love_windows_32_bit>"
export LOVE_WIN64_PATH="<path_to_love_windows_64_bit>"
export LOVE_APPDIR_PATH="<path_to_love_linux_appdir>"
export LOVE_APP_PATH="<path_to_love_app_macos>"

Or by replacing the ones in the love-builder folder (Not recommended if you use git pull for updates of the repo)

TODO

  • Add Linux support (Maybe even MacOS)
  • Allow for different versions of Love2D

Links

Love2D: https://love2d.org

AppImageKit: https://github.com/AppImage/AppImageKit

Resource Hacker: http://www.angusj.com/resourcehacker

ImageMagick: https://imagemagick.org/index.php

Wine: https://www.winehq.org

Releases

No releases published

Packages

No packages published

Languages