desktop: Add CFBundleDocumentTypes info to Info.plist

The CFBundleDocumentTypes information has been added to the Info.plist
on macOS.
This part of the Info.plist tells the operating system which file
extensions a program can open.
The added information states that Ruffle can open SWF files and should
be the default program to open an SWF file with.

Additionally, this should cause CFBundleTypeIconFiles to be generated
during the build process.
This means that SWF files will have the Ruffle logo on their file icon.
This commit is contained in:
Kornelius Rohrschneider 2023-04-29 22:57:03 +02:00
parent 24079518d9
commit 1a8ef13b4e
No known key found for this signature in database
GPG Key ID: 51CF1ED1E24F7D78
1 changed files with 19 additions and 0 deletions

View File

@ -26,5 +26,24 @@
</array>
<key>NSAccentColorName</key>
<string>RuffleOrange</string>
<key>CFBundleDocumentTypes</key>
<array>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>swf</string>
</array>
<key>CFBundleTypeName</key>
<string>Flash file</string>
<key>CFBundleTypeRole</key>
<string>Viewer</string>
<key>LSHandlerRank</key>
<string>Default</string>
<key>LSItemContentTypes</key>
<array>
<string>com.macromedia.shockwave-flash</string>
</array>
</dict>
</array>
</dict>
</plist>