Browse Source

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

Alex Szpakowski 9 years ago
parent
commit
d2c2c717e4
1 changed files with 7 additions and 0 deletions
  1. 7 0
      platform/xcode/macosx/love-macosx.plist

+ 7 - 0
platform/xcode/macosx/love-macosx.plist

@@ -7,6 +7,10 @@
 	<key>CFBundleDocumentTypes</key>
 	<key>CFBundleDocumentTypes</key>
 	<array>
 	<array>
 		<dict>
 		<dict>
+			<key>CFBundleTypeExtensions</key>
+			<array>
+				<string>love</string>
+			</array>
 			<key>CFBundleTypeIconFile</key>
 			<key>CFBundleTypeIconFile</key>
 			<string>GameIcon</string>
 			<string>GameIcon</string>
 			<key>CFBundleTypeName</key>
 			<key>CFBundleTypeName</key>
@@ -19,6 +23,8 @@
 			<array>
 			<array>
 				<string>org.love2d.love-game</string>
 				<string>org.love2d.love-game</string>
 			</array>
 			</array>
+			<key>LSTypeIsPackage</key>
+			<integer>1</integer>
 		</dict>
 		</dict>
 		<dict>
 		<dict>
 			<key>CFBundleTypeName</key>
 			<key>CFBundleTypeName</key>
@@ -73,6 +79,7 @@
 			<key>UTTypeConformsTo</key>
 			<key>UTTypeConformsTo</key>
 			<array>
 			<array>
 				<string>com.pkware.zip-archive</string>
 				<string>com.pkware.zip-archive</string>
+				<string>com.apple.package</string>
 			</array>
 			</array>
 			<key>UTTypeDescription</key>
 			<key>UTTypeDescription</key>
 			<string>LÖVE Project</string>
 			<string>LÖVE Project</string>