summaryrefslogtreecommitdiff
path: root/src/macos/Info.plist
diff options
context:
space:
mode:
Diffstat (limited to 'src/macos/Info.plist')
-rw-r--r--src/macos/Info.plist56
1 files changed, 56 insertions, 0 deletions
diff --git a/src/macos/Info.plist b/src/macos/Info.plist
index 9e8f65f7..665d54ca 100644
--- a/src/macos/Info.plist
+++ b/src/macos/Info.plist
@@ -10,11 +10,67 @@
<string>pardes</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
+ <!-- The version the About panel shows, and the build Launch Services
+ compares when two copies of the bundle are on disk. -->
+ <key>CFBundleShortVersionString</key>
+ <string>0.1.0</string>
+ <key>CFBundleVersion</key>
+ <string>1</string>
+ <!-- No extension: Launch Services appends .icns and looks in
+ Contents/Resources, where build-app.sh emits pardes.icns. Without this
+ key the Dock shows the blank generic app even though the icon is
+ sitting right there in the bundle. -->
+ <key>CFBundleIconFile</key>
+ <string>pardes</string>
<key>NSHighResolutionCapable</key>
<true/>
+ <!-- build-app.sh overwrites this from macos_min_version in build.zig, which
+ is the single source of truth; the key must exist for PlistBuddy's Set
+ to have something to set. -->
<key>LSMinimumSystemVersion</key>
<string>13.0</string>
+ <key>LSApplicationCategoryType</key>
+ <string>public.app-category.developer-tools</string>
<key>NSPrincipalClass</key>
<string>NSApplication</string>
+ <!-- Both false, and neither is boilerplate: there are live ptys with child
+ processes attached and unsaved buffers with no autosave behind them, so
+ a process macOS killed or quietly relaunched would lose work and orphan
+ shells. -->
+ <key>NSSupportsAutomaticTermination</key>
+ <false/>
+ <key>NSSupportsSuddenTermination</key>
+ <false/>
+ <!-- What Finder's "Open With" offers pardes for. Editor rather than Viewer
+ because Save is a builtin: pardes writes the files it opens. A folder
+ is a legitimate target too — Look on a directory opens a directory
+ pane, which is how you navigate in acme. -->
+ <key>CFBundleDocumentTypes</key>
+ <array>
+ <dict>
+ <key>CFBundleTypeName</key>
+ <string>Text Document</string>
+ <key>CFBundleTypeRole</key>
+ <string>Editor</string>
+ <key>LSHandlerRank</key>
+ <string>Alternate</string>
+ <key>LSItemContentTypes</key>
+ <array>
+ <string>public.plain-text</string>
+ </array>
+ </dict>
+ <dict>
+ <key>CFBundleTypeName</key>
+ <string>Folder</string>
+ <key>CFBundleTypeRole</key>
+ <string>Editor</string>
+ <key>LSHandlerRank</key>
+ <string>Alternate</string>
+ <key>LSItemContentTypes</key>
+ <array>
+ <string>public.folder</string>
+ </array>
+ </dict>
+ </array>
</dict>
</plist>