]> git.sur5r.net Git - fstl/commitdiff
Set up .app icon and file associations
authorMatt Keeter <matt.j.keeter@gmail.com>
Thu, 13 Mar 2014 12:48:56 +0000 (05:48 -0700)
committerMatt Keeter <matt.j.keeter@gmail.com>
Thu, 13 Mar 2014 12:48:56 +0000 (05:48 -0700)
app/Info.plist [new file with mode: 0644]
app/fstl.icns [new file with mode: 0644]
src/fstl.pro

diff --git a/app/Info.plist b/app/Info.plist
new file mode 100644 (file)
index 0000000..565feeb
--- /dev/null
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+       <key>NSPrincipalClass</key>
+       <string>NSApplication</string>
+       <key>CFBundleIconFile</key>
+       <string>fstl.icns</string>
+       <key>CFBundlePackageType</key>
+       <string>APPL</string>
+       <key>CFBundleGetInfoString</key>
+       <string>A minimal fast STL viewer</string>
+       <key>CFBundleSignature</key>
+       <string>????</string>
+       <key>CFBundleExecutable</key>
+       <string>fstl</string>
+       <key>CFBundleIdentifier</key>
+    <string>com.impraxical.fstl</string>
+    <key>CFBundleDocumentTypes</key>
+    <array>
+        <dict>
+            <key>CFBundleTypeExtensions</key>
+            <array>
+                <string>stl</string>
+            </array>
+            <key>CFBundleTypeName</key>
+            <string>Stereolithography file</string>
+            <key>CFBundleTypeRole</key>
+            <string>Viewer</string>
+        </dict>
+    </array>
+</dict>
+</plist>
diff --git a/app/fstl.icns b/app/fstl.icns
new file mode 100644 (file)
index 0000000..69c011c
Binary files /dev/null and b/app/fstl.icns differ
index 2033575b93a4b76e7805d7f6387bbc908ca8ba81..8729f8c9145c6ab8ad3396ec36442c81838c4cb2 100644 (file)
@@ -24,3 +24,7 @@ CONFIG += c++11
 
 RESOURCES += \
     resources.qrc
+
+QMAKE_INFO_PLIST = ../misc/Info.plist
+
+ICON = ../misc/fstl.icns