From 1441e0362cfb27364c7bcb597fe3fc3b81c865e8 Mon Sep 17 00:00:00 2001 From: Zachary Slater Date: Wed, 20 Aug 2008 19:00:22 +0000 Subject: [PATCH] Thanks to i.atent.dead@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)." --- make-macosx-ub.sh | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/make-macosx-ub.sh b/make-macosx-ub.sh index 935d0cc3..2a962dc4 100755 --- a/make-macosx-ub.sh +++ b/make-macosx-ub.sh @@ -226,6 +226,48 @@ echo " NSPrincipalClass NSApplication + UTExportedTypeDeclarations + + + UTTypeConformsTo + + public.text + public.plain-text + + UTTypeDescription + Configuration file + UTTypeIdentifier + com.idsoftware.cfg + UTTypeTagSpecification + + com.apple.ostype + TEXT + public.filename-extension + + cfg + config + + + + + UTTypeConformsTo + + public.zip-archive + com.pkware.zip-archive + + UTTypeDescription + Pak archive + UTTypeIdentifier + com.idsoftware.pk3 + UTTypeTagSpecification + + public.filename-extension + + pk3 + + + + " > $DESTDIR/$APPBUNDLE/Contents/Info.plist