Skip to content

Commit a6715c5

Browse files
committed
Exclude .venv/.git from the api source tree bundled by PyInstaller
api/.venv exists both locally and in CI (poetry installs in-project), and _source_tree() was copying it wholesale into the frozen bundle: ~460 MB of site-packages shipped as inert data inside every AppImage/.exe. The freshly rebuilt AppImage jumped 281 MB -> 462 MB, which is how this surfaced.
1 parent 6cd2c72 commit a6715c5

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

hackdeepwiki.spec

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,12 @@ tiktoken_cache_source = os.path.abspath('tiktoken_cache')
6060
# commit. Filtering here keeps local and CI builds byte-identical in content
6161
# regardless of working-tree state.
6262
_TREE_EXCLUDED_DIRS = {'dist', 'build', 'logs', '__pycache__', '.pytest_cache',
63-
'.mypy_cache', '.ruff_cache', '.claude'}
63+
'.mypy_cache', '.ruff_cache', '.claude',
64+
# api/.venv is the build environment itself (poetry
65+
# installs it in-project, locally AND in CI) -- bundling
66+
# it shipped ~460 MB of site-packages as dead weight
67+
# inside the frozen app's api/ source tree.
68+
'.venv', '.venv311', '.git'}
6469
_TREE_EXCLUDED_EXTS = ('.pyc', '.pyo', '.log')
6570

6671

0 commit comments

Comments
 (0)