Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions packaging/freeze-cli.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,14 @@ rm -rf "$DIST_DIR" "$WORK_DIR" "$HERE"/*.spec
--hidden-import=uvicorn.lifespan.on \
"$HERE/pyinstaller_entry.py"

# Strip pip's install-source record from the frozen bundle. `pip install .` into
# the build venv writes a PEP 610 direct_url.json into agentacct-*.dist-info that
# records the ABSOLUTE local build path (file:///Users/<name>/.../worktrees/...);
# --collect-all then copies that dist-info into _internal/. The file has no
# runtime purpose here and would ship the builder's account name + build path
# inside the public DMG, so delete every direct_url.json from the output.
find "$DIST_DIR/agentacct" -name direct_url.json -delete 2>/dev/null || true

BIN="$DIST_DIR/agentacct/agentacct"
echo "==> smoke-testing the frozen binary"
"$BIN" --version
Expand Down
Loading