summaryrefslogtreecommitdiff
path: root/dev/macos/Info.plist
diff options
context:
space:
mode:
Diffstat (limited to 'dev/macos/Info.plist')
-rw-r--r--dev/macos/Info.plist76
1 files changed, 76 insertions, 0 deletions
diff --git a/dev/macos/Info.plist b/dev/macos/Info.plist
new file mode 100644
index 00000000..3cb2e488
--- /dev/null
+++ b/dev/macos/Info.plist
@@ -0,0 +1,76 @@
+<?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>CFBundleName</key>
+ <string>pardes</string>
+ <key>CFBundleIdentifier</key>
+ <string>cafe.0x4200.pardes</string>
+ <key>CFBundleExecutable</key>
+ <string>pardes</string>
+ <key>CFBundlePackageType</key>
+ <string>APPL</string>
+ <!-- build.zig stamps the package version into this placeholder. The build
+ number below increases with releases for Launch Services. -->
+ <key>CFBundleShortVersionString</key>
+ <string>0.0.0</string>
+ <key>CFBundleVersion</key>
+ <string>3</string>
+ <!-- No extension: Launch Services appends .icns and looks in
+ Contents/Resources, where build.zig installs the pardes.icns
+ src/macos/icon.swift draws. 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.zig stamps this from macos_min_version, which is the single
+ source of truth, into a copy of this file; the key must exist for
+ plutil's -replace to have something to replace. -->
+ <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>