Skip to content

Commit 4301cf3

Browse files
committed
Update Info.plist.vtl
1 parent 6fcd142 commit 4301cf3

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/main/resources/mac/Info.plist.vtl

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,21 @@
44
<dict>
55
<key>CFBundleGetInfoString</key>
66
<string>${info.displayName} ${info.version}</string>
7+
#if (!$info.fileAssociations.isEmpty())
8+
<key>CFBundleDocumentTypes</key>
9+
<array>
10+
#foreach ($fileAssociation in $info.fileAssociations)
11+
<dict>
12+
<key>CFBundleTypeExtensions</key>
13+
<array>
14+
<string>${fileAssociation.extension}</string>
15+
</array>
16+
<key>CFBundleTypeName</key>
17+
<string>${fileAssociation.description}</string>
18+
</dict>
19+
#end
20+
</array>
21+
#end
722
<key>CFBundleDevelopmentRegion</key>
823
<string>English</string>
924
<key>CFBundleExecutable</key>

0 commit comments

Comments
 (0)