|
9 | 9 | <array> |
10 | 10 | #foreach ($fileAssociation in $info.fileAssociations) |
11 | 11 | <dict> |
| 12 | + <key>CFBundleTypeIconFiles</key> |
| 13 | + <array> |
| 14 | + <string>${info.iconFile.name}</string> |
| 15 | + </array> |
| 16 | + <key>CFBundleTypeName</key> |
| 17 | + <string>${fileAssociation.description}</string> |
| 18 | + <key>CFBundleTypeRole</key> |
| 19 | + <string>Viewer</string> |
| 20 | + <key>LSHandlerRank</key> |
| 21 | + <string>Owner</string> |
12 | 22 | <key>CFBundleTypeExtensions</key> |
13 | 23 | <array> |
14 | 24 | <string>${fileAssociation.extension}</string> |
15 | 25 | </array> |
16 | | - <key>CFBundleTypeName</key> |
17 | | - <string>${fileAssociation.description}</string> |
18 | | - </dict> |
19 | | -#end |
| 26 | + <key>LSItemContentTypes</key> |
| 27 | + <array> |
| 28 | + <string>${info.macConfig.appId}.${fileAssociation.extension}</string> |
| 29 | + </array> |
| 30 | + </dict> |
| 31 | +#end |
| 32 | + </array> |
| 33 | +#end |
| 34 | +#if (!$info.fileAssociations.isEmpty()) |
| 35 | + <key>UTExportedTypeDeclarations</key> |
| 36 | + <array> |
| 37 | +#foreach ($fileAssociation in $info.fileAssociations) |
| 38 | + <dict> |
| 39 | + <key>UTTypeConformsTo</key> |
| 40 | + <array> |
| 41 | + <string>public.data</string> |
| 42 | + </array> |
| 43 | + <key>UTTypeDescription</key> |
| 44 | + <string>${fileAssociation.description}</string> |
| 45 | + <key>UTTypeIdentifier</key> |
| 46 | + <string>${info.macConfig.appId}.${fileAssociation.extension}</string> |
| 47 | + <key>UTTypeTagSpecification</key> |
| 48 | + <dict> |
| 49 | + <key>public.filename-extension</key> |
| 50 | + <string>${fileAssociation.extension}</string> |
| 51 | + <key>public.mime-type</key> |
| 52 | + <string>${fileAssociation.mimeType}</string> |
| 53 | + </dict> |
| 54 | + </dict> |
| 55 | +#end |
20 | 56 | </array> |
21 | 57 | #end |
22 | 58 | <key>CFBundleDevelopmentRegion</key> |
|
0 commit comments