Browse Source

Updated the OS X version to use Apple's UTI stuff for .love files

Bill Meltsner 15 years ago
parent
commit
0d81774b4a
1 changed files with 33 additions and 1 deletions
  1. 33 1
      platform/macosx/Info.plist

+ 33 - 1
platform/macosx/Info.plist

@@ -17,7 +17,11 @@
 			<string>Love Project</string>
 			<string>Love Project</string>
 			<key>CFBundleTypeOSTypes</key>
 			<key>CFBundleTypeOSTypes</key>
 			<array>
 			<array>
-				<string>????</string>
+				<string>LOVE</string>
+			</array>
+			<key>CFBundleTypeMIMETypes</key>
+			<array>
+				<string>application/x-love-game</string>
 			</array>
 			</array>
 			<key>CFBundleTypeRole</key>
 			<key>CFBundleTypeRole</key>
 			<string>Viewer</string>
 			<string>Viewer</string>
@@ -37,6 +41,34 @@
 			<string>Viewer</string>
 			<string>Viewer</string>
 		</dict>
 		</dict>
 	</array>
 	</array>
+	<key>UTExportedTypeDeclarations</key>
+	<array>
+		<dict>
+			<key>UTTypeConformsTo</key>
+			<array>
+				<string>com.pkware.zip-archive</string>
+			</array>
+			<key>UTTypeIdentifier</key>
+			<string>org.love2d.love-game</string>
+			<key>UTTypeDescription</key>
+			<string>Love Project</string>
+			<key>UTTypeIconFile</key>
+			<string>LoveDocument.icns</string>
+			<key>UTTypeTagSpecification</key>
+			<dict>
+				<key>com.apple.ostype</key>
+				<string>LOVE</string>
+				<key>public.filename-extension</key>
+				<array>
+					<string>love</string>
+				</array>
+				<key>public.mime-type</key>
+				<string>application/x-love-game</string>
+			</dict>
+			<key>UTTypeReferenceURL</key>
+			<string>http://love2d.org/wiki/Game_Distribution</string>
+		</dict>
+	</array>
 	<key>CFBundleExecutable</key>
 	<key>CFBundleExecutable</key>
 	<string>love</string>
 	<string>love</string>
 	<key>CFBundleIconFile</key>
 	<key>CFBundleIconFile</key>