Currently the Mac executable only associates a com.pkware.zip-archive file with the extension .love, and if it contains a main.lua file at the root then double-clicking will execute the file. It is however also possible to drop any folder containing a main.lua file onto the main love.app executable and it runs successfully. Adding <string>com.apple.package</string> to the UTTypeConformsTo array in the Info.plist file will associate any folder with the .love extension in the same way as a zip file, meaning that they can also just be double-clicked to launch.
This change will make it easier to edit and experiment with applications without having to re-zip them or drag and dropping them onto the executable. The folder becomes a double-clickable document itself, and its contents can still be accessed through the terminal, or by Ctrl-Click (or right-click) and "Show Package Contents".
Original report by Parakleta (Bitbucket: Parakleta, GitHub: Parakleta).
Currently the Mac executable only associates a
com.pkware.zip-archive
file with the extension.love
, and if it contains amain.lua
file at the root then double-clicking will execute the file. It is however also possible to drop any folder containing amain.lua
file onto the mainlove.app
executable and it runs successfully. Adding<string>com.apple.package</string>
to theUTTypeConformsTo
array in theInfo.plist
file will associate any folder with the.love
extension in the same way as a zip file, meaning that they can also just be double-clicked to launch.This change will make it easier to edit and experiment with applications without having to re-zip them or drag and dropping them onto the executable. The folder becomes a double-clickable document itself, and its contents can still be accessed through the terminal, or by Ctrl-Click (or right-click) and "Show Package Contents".