Skip to content

Support macOS installer package payloads - #167

Closed
longlho wants to merge 1 commit into
facebook:mainfrom
perplexityai:codex/upstream-pkg-support
Closed

longlho wants to merge 1 commit into
facebook:mainfrom
perplexityai:codex/upstream-pkg-support

Conversation

@longlho

@longlho longlho commented Sep 21, 2026 •

Copy link
Copy Markdown

Some macOS command-line tools ship as installer packages, which DotSlash cannot currently represent or extract.

Add format: "pkg" and .pkg URL inference. On macOS, expand packages with pkgutil --expand-full and copy component payloads with ditto, preserving executable permissions and symlinks without installing the package or running installer scripts. Payload paths ignore installation locations; distribution payloads merge in lexical order. Other hosts can parse these manifests but reject package extraction.

Tests build real component and distribution packages with pkgbuild/productbuild, cover paths containing spaces and apostrophes, verify payload contents and symlinks, and reject invalid packages. Full macOS and Linux test suites pass; Linux also verifies that package extraction returns an unsupported-platform error.

@meta-cla meta-cla Bot added the cla signed label Sep 21, 2026
@meta-codesync

meta-codesync Bot commented Sep 21, 2026

Copy link
Copy Markdown
Contributor

This pull request has been imported. If you are a Meta employee, you can view this in D120940854. (Because this pull request was imported automatically, there will not be any future comments.)

@longlho
longlho marked this pull request as ready for review September 21, 2026 01:59
@longlho longlho closed this Sep 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant