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.
chmod +x build.sh
./build.sh <path_to_love_file>
or
./build.sh <path_to_love_file> [path_to_icon]
Archives get put into a build
folder.
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.
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.
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)
Add Linux support (Maybe even MacOS)Allow for different versions of Love2D
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