diff --git a/.changeset/curly-parents-peel.md b/.changeset/curly-parents-peel.md new file mode 100644 index 0000000..9ef2f00 --- /dev/null +++ b/.changeset/curly-parents-peel.md @@ -0,0 +1,5 @@ +--- +"app-builder-bin": patch +--- + +fix: handle the table of content resource type correctly diff --git a/pkg/icons/icns.go b/pkg/icons/icns.go index 2df57bd..fc6f0a0 100644 --- a/pkg/icons/icns.go +++ b/pkg/icons/icns.go @@ -168,7 +168,7 @@ func ReadIcns(reader *bufio.Reader) (map[string]SubImage, error) { imageDataLength := int(icon.Length) - 8 osType := string(icon.Type[:]) - if osType != "info" && osType != "TOC" && osType != "icnV" && osType != "name" { + if osType != "info" && osType != "TOC " && osType != "icnV" && osType != "name" { typeToImage[osType] = SubImage{ Offset: offset, Length: imageDataLength,