Skip to content

fix(packaging): strip pip direct_url.json from the frozen CLI - #176

Merged
mikehasa merged 1 commit into
mainfrom
fix/freeze-scrub-direct-url
Aug 30, 2026
Merged

fix(packaging): strip pip direct_url.json from the frozen CLI#176
mikehasa merged 1 commit into
mainfrom
fix/freeze-scrub-direct-url

Conversation

@mikehasa

Copy link
Copy Markdown
Owner

The frozen CLI bundled inside the DMG shipped _internal/agentacct-*.dist-info/direct_url.json, which pip writes on pip install . and records the absolute local build path (file:///Users/<name>/.../worktrees/...) — leaking the builder's account name and path inside the public DMG. --collect-all agentacct copied that dist-info into the bundle.

Fix: after PyInstaller freezes the bundle, delete every direct_url.json from the output. It has no runtime purpose in a frozen onedir bundle. Verified the pattern matches the real leak in the currently-shipped app. Packaging-script only; no Python/Swift change. Takes effect on the next DMG rebuild.

pip install . into the build venv writes a PEP 610 direct_url.json into
agentacct-*.dist-info recording the absolute local build path
(file:///Users/<name>/.../worktrees/...); --collect-all copies it into the
frozen bundle, so the shipped DMG leaked the builder's account name and build
path. It has no runtime purpose in a frozen bundle — delete it after freezing.
@mikehasa
mikehasa merged commit 94353de into main Aug 30, 2026
4 checks passed
@mikehasa
mikehasa deleted the fix/freeze-scrub-direct-url branch August 30, 2026 22:01
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.

1 participant