aboutsummaryrefslogtreecommitdiffstats
path: root/make-macosx-ub.sh
diff options
context:
space:
mode:
authorzakk <zakk@edf5b092-35ff-0310-97b2-ce42778d08ea>2008-08-20 19:00:22 +0000
committerzakk <zakk@edf5b092-35ff-0310-97b2-ce42778d08ea>2008-08-20 19:00:22 +0000
commit128ce8a882ef213fcfe63dcb3106a16ef9fd39b1 (patch)
treeaf28e7a1778712696da505cab1a7154916777faf /make-macosx-ub.sh
parent8ba829d50d5602b1a753cb295de7a6add2501691 (diff)
downloadioquake3-aero-128ce8a882ef213fcfe63dcb3106a16ef9fd39b1.tar.gz
ioquake3-aero-128ce8a882ef213fcfe63dcb3106a16ef9fd39b1.zip
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)." git-svn-id: svn://svn.icculus.org/quake3/trunk@1451 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'make-macosx-ub.sh')
-rwxr-xr-xmake-macosx-ub.sh42
1 files changed, 42 insertions, 0 deletions
diff --git a/make-macosx-ub.sh b/make-macosx-ub.sh
index 935d0cc..2a962dc 100755
--- a/make-macosx-ub.sh
+++ b/make-macosx-ub.sh
@@ -226,6 +226,48 @@ echo "
<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