love2d / love

LÖVE is an awesome 2D game framework for Lua.
https://love2d.org
Other
5.16k stars 405 forks source link

Add `com.apple.package` to `Info.plist -> UTTypeConformsTo` #1191

Closed slime73 closed 8 years ago

slime73 commented 8 years ago

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 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".

slime73 commented 8 years ago

Original comment by Alex Szpakowski (Bitbucket: slime73, GitHub: slime73).


Mac: treat folders with the .love extension as packages that can be double-clicked to open with LÖVE (resolves #1191).