osxbundle: replace deprecated keys

replaces deprecated CFBundleTypeExtensions with LSItemContentTypes.
LSHandlerRank ranks apps that declare as editors or viewers of a specific file type. Default value was chosen since mpv is a viewer of file types.
This commit is contained in:
maxdunbar 2024-03-18 14:54:41 -07:00 committed by GitHub
parent cbe30f614d
commit cd0e2d41c3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 15 additions and 3 deletions

View File

@ -7,7 +7,7 @@
<key>CFBundleDocumentTypes</key>
<array>
<dict>
<key>CFBundleTypeExtensions</key>
<key>LSItemContentTypes</key>
<array>
<string>AAC</string>
<string>AC3</string>
@ -40,13 +40,15 @@
<string>Audio file</string>
<key>CFBundleTypeRole</key>
<string>Viewer</string>
<key>LSHandlerRank</key>
<string>Default</string>
<key>LSTypeIsPackage</key>
<false/>
<key>NSPersistentStoreTypeKey</key>
<string>XML</string>
</dict>
<dict>
<key>CFBundleTypeExtensions</key>
<key>LSItemContentTypes</key>
<array>
<string>*</string>
<string>*</string>
@ -131,13 +133,15 @@
<string>Movie file</string>
<key>CFBundleTypeRole</key>
<string>Viewer</string>
<key>LSHandlerRank</key>
<string>Default</string>
<key>LSTypeIsPackage</key>
<false/>
<key>NSPersistentStoreTypeKey</key>
<string>XML</string>
</dict>
<dict>
<key>CFBundleTypeExtensions</key>
<key>LSItemContentTypes</key>
<array>
<string>AQT</string>
<string>ASS</string>
@ -166,6 +170,8 @@
<string>Subtitles file</string>
<key>CFBundleTypeRole</key>
<string>Viewer</string>
<key>LSHandlerRank</key>
<string>Default</string>
<key>LSTypeIsPackage</key>
<false/>
<key>NSPersistentStoreTypeKey</key>
@ -202,6 +208,8 @@
<dict>
<key>CFBundleTypeRole</key>
<string>Viewer</string>
<key>LSHandlerRank</key>
<string>Default</string>
<key>CFBundleURLName</key>
<string>mpv Custom Protocol</string>
<key>CFBundleURLSchemes</key>
@ -212,6 +220,8 @@
<dict>
<key>CFBundleTypeRole</key>
<string>Viewer</string>
<key>LSHandlerRank</key>
<string>Default</string>
<key>CFBundleURLName</key>
<string>Streaming Protocol</string>
<key>CFBundleURLSchemes</key>
@ -233,6 +243,8 @@
<dict>
<key>CFBundleTypeRole</key>
<string>Viewer</string>
<key>LSHandlerRank</key>
<string>Default</string>
<key>CFBundleURLName</key>
<string>CD/DVD/Bluray Media</string>
<key>CFBundleURLSchemes</key>