summaryrefslogtreecommitdiff
path: root/src/macos/Info.plist
blob: 3cb2e488aecc3b925240c513029f4a0e59ce51a0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
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>