add cbz support

This commit is contained in:
2025-06-04 10:40:21 -04:00
parent 4afe1bfb18
commit 60c269ad35
3 changed files with 173 additions and 21 deletions

View File

@@ -84,6 +84,24 @@ var Valid = []FileDescription{
OSTypes: []string{"WEBP"},
ItemContentTypes: "org.webmproject.webp",
},
{
TkTypeName: "CBZ",
MacExtensions: []string{"cbz", "CBZ"},
IconFile: "cbz.icns",
MIMETypes: []string{"application/vnd.comicbook+zip", "application/x-cbz"},
TypeName: "Comic Book Zip Archive",
OSTypes: []string{"CBZ"},
ItemContentTypes: "in.yetaga.why.cbz",
},
{
TkTypeName: "CBR",
MacExtensions: []string{"cbr", "CBR"},
IconFile: "cbr.icns",
MIMETypes: []string{"application/vnd.comicbook-rar", "application/x-cbr"},
TypeName: "Comic Book Rar Archive",
OSTypes: []string{"CBR"},
ItemContentTypes: "in.yetaga.why.cbr",
},
}
func GetTkTypes(fds []FileDescription) []tk.FileType {