Skip to content

Commit 2662ab0

Browse files
authored
Fix Plist issues (#759)
* Prepare Plist on Mac CI * Fix Plist * Add file association and other attributes
1 parent 31c14c2 commit 2662ab0

File tree

2 files changed

+40
-11
lines changed

2 files changed

+40
-11
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,10 @@ jobs:
105105
contents: write
106106
steps:
107107
- uses: actions/checkout@v4
108+
- name: Prepare Plist
109+
run: |
110+
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion $(date +'%Y%m%d%H%M%S')" "osx/Info.plist"
111+
/usr/libexec/PlistBuddy -c "Set :CFBundleShortVersionString $(date +'%Y.%m.%d')" "osx/Info.plist"
108112
- name: cmake
109113
run: cmake -S . -B _build -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=macos-bundle
110114
- name: Build TreeSheets

osx/Info.plist

Lines changed: 36 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,24 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
33
<plist version="1.0">
44
<dict>
55
<key>CFBundleDevelopmentRegion</key>
66
<string>English</string>
7+
<key>CFBundleDocumentTypes</key>
8+
<array>
9+
<dict>
10+
<key>CFBundleTypeRole</key>
11+
<string>Editor</string>
12+
<key>CFBundleTypeExtensions</key>
13+
<array>
14+
<string>cts</string>
15+
</array>
16+
<key>CFBundleTypeIconFile</key>
17+
<string>App</string>
18+
<key>CFBundleTypeName</key>
19+
<string>TreeSheets</string>
20+
</dict>
21+
</array>
722
<key>CFBundleExecutable</key>
823
<string>treesheets</string>
924
<key>CFBundleGetInfoString</key>
@@ -14,6 +29,15 @@
1429
<string>com.strlen.TreeSheets</string>
1530
<key>CFBundleInfoDictionaryVersion</key>
1631
<string>6.0</string>
32+
<key>CFBundleLocalizations</key>
33+
<array>
34+
<string>English</string>
35+
<string>German</string>
36+
<string>French</string>
37+
<string>Chinese</string>
38+
<string>Portuguese</string>
39+
<string>Russian</string>
40+
</array>
1741
<key>CFBundleLongVersionString</key>
1842
<string></string>
1943
<key>CFBundleName</key>
@@ -28,16 +52,17 @@
2852
<string></string>
2953
<key>CSResourcesFileMapped</key>
3054
<true/>
55+
<key>LSApplicationCategoryType</key>
56+
<string>public.app-category.productivity</string>
57+
<key>LSMinimumSystemVersion</key>
58+
<string>10.15</string>
59+
<key>NSHighResolutionCapable</key>
60+
<true/>
3161
<key>NSHumanReadableCopyright</key>
32-
<string>Wouter van Oortmersen</string>
33-
<key>CFBundleLocalizations</key>
34-
<array>
35-
<string>English</string>
36-
<string>German</string>
37-
<string>French</string>
38-
<string>Chinese</string>
39-
<string>Portuguese</string>
40-
<string>Russian</string>
41-
</array>
62+
<string>Copyright © 2013 Wouter van Oortmerssen. All rights reserved.</string>
63+
<key>NSMainNibFile</key>
64+
<string>MainMenu</string>
65+
<key>NSPrincipalClass</key>
66+
<string>NSApplication</string>
4267
</dict>
4368
</plist>

0 commit comments

Comments
 (0)