correct indentation on generated plist

This commit is contained in:
2025-05-17 14:46:22 -04:00
parent 2cab45fe9c
commit 4f951537c8
2 changed files with 228 additions and 228 deletions

View File

@@ -27,32 +27,32 @@ func main() {
}
var tmpl = `
<key>CFBundleDocumentTypes</key>
<array>{{ range . }}
<dict>
<key>CFBundleTypeExtensions</key>
<array>{{ range .MacExtensions }}
<string>{{ . }}</string>{{ end }}
</array>
<key>CFBundleTypeIconFile</key>
<string>{{ .IconFile }}</string>
<key>CFBundleTypeMIMETypes</key>
<array>{{ range .MIMETypes }}
<string>{{ . }}</string>{{ end }}
</array>
<key>CFBundleTypeName</key>
<string>{{ .TypeName }}</string>
<key>CFBundleTypeOSTypes</key>
<array>{{ range .OSTypes }}
<string>{{ . }}</string>{{ end }}
</array>
<key>CFBundleTypeRole</key>
<string>Viewer</string>
<key>LSItemContentTypes</key>
<array>
<string>{{ .ItemContentTypes }}</string>
</array>
<key>LSTypeIsPackage</key>
<false/>
</dict>{{ end }}
</array>`
<key>CFBundleDocumentTypes</key>
<array>{{ range . }}
<dict>
<key>CFBundleTypeExtensions</key>
<array>{{ range .MacExtensions }}
<string>{{ . }}</string>{{ end }}
</array>
<key>CFBundleTypeIconFile</key>
<string>{{ .IconFile }}</string>
<key>CFBundleTypeMIMETypes</key>
<array>{{ range .MIMETypes }}
<string>{{ . }}</string>{{ end }}
</array>
<key>CFBundleTypeName</key>
<string>{{ .TypeName }}</string>
<key>CFBundleTypeOSTypes</key>
<array>{{ range .OSTypes }}
<string>{{ . }}</string>{{ end }}
</array>
<key>CFBundleTypeRole</key>
<string>Viewer</string>
<key>LSItemContentTypes</key>
<array>
<string>{{ .ItemContentTypes }}</string>
</array>
<key>LSTypeIsPackage</key>
<false/>
</dict>{{ end }}
</array>`