generate plist from filetypes and inject into app bundle

This commit is contained in:
2025-05-03 15:43:44 -04:00
parent 4c0d9de1cd
commit b50e13a34e
7 changed files with 407 additions and 120 deletions

172
documentTypes.plist Normal file
View File

@@ -0,0 +1,172 @@
<key>CFBundleDocumentTypes</key>
<array>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>bmp</string>
<string>BMP</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>bmp.icns</string>
<key>CFBundleTypeMIMETypes</key>
<array>
<string>image/bmp</string>
</array>
<key>CFBundleTypeName</key>
<string>Windows Bitmap Image</string>
<key>CFBundleTypeOSTypes</key>
<array>
<string>BMP </string>
<string>BMPf</string>
</array>
<key>CFBundleTypeRole</key>
<string>Viewer</string>
<key>LSItemContentTypes</key>
<array>
<string>com.microsoft.bmp</string>
</array>
<key>LSTypeIsPackage</key>
<false/>
</dict>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>jpg</string>
<string>JPG</string>
<string>jpeg</string>
<string>JPEG</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>jpeg.icns</string>
<key>CFBundleTypeMIMETypes</key>
<array>
<string>image/jpeg</string>
</array>
<key>CFBundleTypeName</key>
<string>JPEG Image</string>
<key>CFBundleTypeOSTypes</key>
<array>
<string>JPEG</string>
</array>
<key>CFBundleTypeRole</key>
<string>Viewer</string>
<key>LSItemContentTypes</key>
<array>
<string>public.jpeg</string>
</array>
<key>LSTypeIsPackage</key>
<false/>
</dict>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>gif</string>
<string>GIF</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>gif.icns</string>
<key>CFBundleTypeMIMETypes</key>
<array>
<string>image/gif</string>
</array>
<key>CFBundleTypeName</key>
<string>Graphics Interchange Format Image</string>
<key>CFBundleTypeOSTypes</key>
<array>
<string>GIFf</string>
</array>
<key>CFBundleTypeRole</key>
<string>Viewer</string>
<key>LSItemContentTypes</key>
<array>
<string>com.compuserve.gif</string>
</array>
<key>LSTypeIsPackage</key>
<false/>
</dict>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>PNG</string>
<string>png</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>png.icns</string>
<key>CFBundleTypeMIMETypes</key>
<array>
<string>image/png</string>
</array>
<key>CFBundleTypeName</key>
<string>Portable Network Graphics Image</string>
<key>CFBundleTypeOSTypes</key>
<array>
<string>PNGf</string>
</array>
<key>CFBundleTypeRole</key>
<string>Viewer</string>
<key>LSItemContentTypes</key>
<array>
<string>public.png</string>
</array>
<key>LSTypeIsPackage</key>
<false/>
</dict>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>tga</string>
<string>TGA</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>tga.icns</string>
<key>CFBundleTypeMIMETypes</key>
<array>
<string>image/targa</string>
<string>image/tga</string>
<string>application/tga</string>
</array>
<key>CFBundleTypeName</key>
<string>Targa Image</string>
<key>CFBundleTypeOSTypes</key>
<array>
<string>TPIC</string>
</array>
<key>CFBundleTypeRole</key>
<string>Viewer</string>
<key>LSItemContentTypes</key>
<array>
<string>com.truevision.tga-image</string>
</array>
<key>LSTypeIsPackage</key>
<false/>
</dict>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>tiff</string>
<string>TIFF</string>
<string>tif</string>
<string>TIF</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>tiff.icns</string>
<key>CFBundleTypeMIMETypes</key>
<array>
<string>image/tiff</string>
</array>
<key>CFBundleTypeName</key>
<string>TIFF Image</string>
<key>CFBundleTypeOSTypes</key>
<array>
<string>TIFF</string>
</array>
<key>CFBundleTypeRole</key>
<string>Viewer</string>
<key>LSItemContentTypes</key>
<array>
<string>public.tiff</string>
</array>
<key>LSTypeIsPackage</key>
<false/>
</dict>