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

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

View File

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