Skip to content

fix: scan zip entries in determine_package_type instead of assuming index 1#100

Merged
jkcoxson merged 1 commit into
jkcoxson:masterfrom
Ylarod:master
May 8, 2026
Merged

fix: scan zip entries in determine_package_type instead of assuming index 1#100
jkcoxson merged 1 commit into
jkcoxson:masterfrom
Ylarod:master

Conversation

@Ylarod
Copy link
Copy Markdown
Contributor

@Ylarod Ylarod commented May 8, 2026

Zip entry order isn't guaranteed and directory entries are optional, so
hardcoding entry index 1 as the inner Payload/<name>.{app,bundle}/ folder
breaks for archives whose writers omit directory entries or order entries
differently. Scan the central directory for any path under Payload/ whose
top segment carries the expected extension. Also defer get_bundle_id to
the .app branch so IPCC packages without a depth-3 Info.plist no longer
fail detection.

@jkcoxson jkcoxson merged commit 22f05fa into jkcoxson:master May 8, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants