Skip to content

Commit

Permalink
Fix Plist issues (#759)
Browse files Browse the repository at this point in the history
* Prepare Plist on Mac CI

* Fix Plist

* Add file association and other attributes
  • Loading branch information
tobiolo authored Nov 14, 2024
1 parent 31c14c2 commit 2662ab0
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 11 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,10 @@ jobs:
contents: write
steps:
- uses: actions/checkout@v4
- name: Prepare Plist
run: |
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion $(date +'%Y%m%d%H%M%S')" "osx/Info.plist"
/usr/libexec/PlistBuddy -c "Set :CFBundleShortVersionString $(date +'%Y.%m.%d')" "osx/Info.plist"
- name: cmake
run: cmake -S . -B _build -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=macos-bundle
- name: Build TreeSheets
Expand Down
47 changes: 36 additions & 11 deletions osx/Info.plist
Original file line number Diff line number Diff line change
@@ -1,9 +1,24 @@
<?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">
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleDocumentTypes</key>
<array>
<dict>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>CFBundleTypeExtensions</key>
<array>
<string>cts</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>App</string>
<key>CFBundleTypeName</key>
<string>TreeSheets</string>
</dict>
</array>
<key>CFBundleExecutable</key>
<string>treesheets</string>
<key>CFBundleGetInfoString</key>
Expand All @@ -14,6 +29,15 @@
<string>com.strlen.TreeSheets</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleLocalizations</key>
<array>
<string>English</string>
<string>German</string>
<string>French</string>
<string>Chinese</string>
<string>Portuguese</string>
<string>Russian</string>
</array>
<key>CFBundleLongVersionString</key>
<string></string>
<key>CFBundleName</key>
Expand All @@ -28,16 +52,17 @@
<string></string>
<key>CSResourcesFileMapped</key>
<true/>
<key>LSApplicationCategoryType</key>
<string>public.app-category.productivity</string>
<key>LSMinimumSystemVersion</key>
<string>10.15</string>
<key>NSHighResolutionCapable</key>
<true/>
<key>NSHumanReadableCopyright</key>
<string>Wouter van Oortmersen</string>
<key>CFBundleLocalizations</key>
<array>
<string>English</string>
<string>German</string>
<string>French</string>
<string>Chinese</string>
<string>Portuguese</string>
<string>Russian</string>
</array>
<string>Copyright © 2013 Wouter van Oortmerssen. All rights reserved.</string>
<key>NSMainNibFile</key>
<string>MainMenu</string>
<key>NSPrincipalClass</key>
<string>NSApplication</string>
</dict>
</plist>

0 comments on commit 2662ab0

Please sign in to comment.