r1451 - trunk

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Wed Aug 20 15:00:34 EDT 2008


Author: zakk
Date: 2008-08-20 15:00:22 -0400 (Wed, 20 Aug 2008)
New Revision: 1451

Modified:
   trunk/make-macosx-ub.sh
Log:
Thanks to i.atent.dead at gmail.com, this adds:
"I've written out a couple of type declarations for .cfg/.config and .pk3 files, which allows OS X to recognise what they are (handy for eg. QuickLook)."


Modified: trunk/make-macosx-ub.sh
===================================================================
--- trunk/make-macosx-ub.sh	2008-08-19 21:32:23 UTC (rev 1450)
+++ trunk/make-macosx-ub.sh	2008-08-20 19:00:22 UTC (rev 1451)
@@ -226,6 +226,48 @@
 		<key>NSPrincipalClass</key>
 		<string>NSApplication</string>
 	</dict>
+	<key>UTExportedTypeDeclarations</key>
+	<array>
+		<dict>
+			<key>UTTypeConformsTo</key>
+			<array>
+				<string>public.text</string>
+				<string>public.plain-text</string>
+			</array>
+			<key>UTTypeDescription</key>
+			<string>Configuration file</string>
+			<key>UTTypeIdentifier</key>
+			<string>com.idsoftware.cfg</string>
+			<key>UTTypeTagSpecification</key>
+			<dict>
+				<key>com.apple.ostype</key>
+				<string>TEXT</string>
+				<key>public.filename-extension</key>
+				<array>
+					<string>cfg</string>
+					<string>config</string>
+				</array>
+			</dict>
+		</dict>
+		<dict>
+			<key>UTTypeConformsTo</key>
+			<array>
+				<string>public.zip-archive</string>
+				<string>com.pkware.zip-archive</string>
+			</array>
+			<key>UTTypeDescription</key>
+			<string>Pak archive</string>
+			<key>UTTypeIdentifier</key>
+			<string>com.idsoftware.pk3</string>
+			<key>UTTypeTagSpecification</key>
+			<dict>
+				<key>public.filename-extension</key>
+				<array>
+					<string>pk3</string>
+				</array>
+			</dict>
+		</dict>
+	</array>
 	</plist>
 	" > $DESTDIR/$APPBUNDLE/Contents/Info.plist
 




More information about the quake3-commits mailing list