aboutsummaryrefslogtreecommitdiff
path: root/macos-Info.plist.in
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2025-11-08 18:47:51 +0100
committerPřemysl Eric Janouch <p@janouch.name>2025-11-11 19:28:45 +0100
commit690e60cd74c44ed1e2d21b27e3152856845ead28 (patch)
tree4a11dff3cec93315170c0caf9a0540c80aef8b75 /macos-Info.plist.in
parenta7ff9f220db0785e88a6013d286b5f6b92f71693 (diff)
downloadfiv-690e60cd74c44ed1e2d21b27e3152856845ead28.tar.gz
fiv-690e60cd74c44ed1e2d21b27e3152856845ead28.tar.xz
fiv-690e60cd74c44ed1e2d21b27e3152856845ead28.zip
Build an application bundle on macOSorigin/masterorigin/HEAD
This is far from done, but nonetheless constitutes a big improvement. macOS application bundles are more or less necessary for: - showing a nice icon; - having spawned off instances actually be brought to the foreground; - file associations (yet files currently do not open properly); - having a reasonable method of distribution. Also resolving a bunch of minor issues: - The context menu had duplicate items, and might needlessly end up with (null) labels.
Diffstat (limited to 'macos-Info.plist.in')
-rw-r--r--macos-Info.plist.in52
1 files changed, 52 insertions, 0 deletions
diff --git a/macos-Info.plist.in b/macos-Info.plist.in
new file mode 100644
index 0000000..b518a62
--- /dev/null
+++ b/macos-Info.plist.in
@@ -0,0 +1,52 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+ <dict>
+ <key>CFBundleExecutable</key>
+ <string>@ProjectName@</string>
+ <key>CFBundleIdentifier</key>
+ <string>@ProjectNS@@ProjectName@</string>
+ <key>CFBundleName</key>
+ <string>@ProjectName@</string>
+ <key>CFBundleIconFile</key>
+ <string>@ProjectName@.icns</string>
+ <key>CFBundleShortVersionString</key>
+ <string>@ProjectVersion@</string>
+ <key>CFBundleInfoDictionaryVersion</key>
+ <string>6.0</string>
+ <key>CFBundlePackageType</key>
+ <string>APPL</string>
+
+ <!-- Although mostly static, this should eventually be generated. -->
+ <!-- In particular, we should expand image/x-dcraw, -->
+ <!-- using information we can collect from shared-mime-info. -->
+ <key>CFBundleDocumentTypes</key>
+ <array>
+ <dict>
+ <key>CFBundleTypeName</key>
+ <string>Image File</string>
+ <key>CFBundleTypeRole</key>
+ <string>Viewer</string>
+ <key>LSHandlerRank</key>
+ <string>Default</string>
+ <key>LSItemContentTypes</key>
+ <array>
+ <string>com.apple.icns</string>
+ <string>com.apple.quicktime-image</string>
+ <string>com.compuserve.gif</string>
+ <string>com.microsoft.bmp</string>
+ <string>com.microsoft.ico</string>
+ <string>org.webmproject.webp</string>
+ <string>public.avif</string>
+ <string>public.heic</string>
+ <string>public.heif</string>
+ <string>public.jpeg</string>
+ <string>public.png</string>
+ <string>public.svg-image</string>
+ <string>public.tiff</string>
+ <string>public.xbitmap-image</string>
+ </array>
+ </dict>
+ </array>
+ </dict>
+</plist>