mirror of
https://github.com/got-feedBack/feedBack-desktop.git
synced 2026-07-22 04:41:26 +00:00
fix(bundle): copy all top-level core .py modules, not just server.py
Core added appstate.py (core#833); bundle-slopsmith.sh's whitelist only copied server.py, so packaged builds crashed on startup with ModuleNotFoundError: No module named 'appstate'. Glob top-level *.py so future sibling modules can't repeat this. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
parent
83b8b66fe7
commit
add4facb85
@ -47,8 +47,11 @@ echo " Source: $SLOPSMITH_DIR"
|
||||
rm -rf "$BUNDLE_DIR"
|
||||
mkdir -p "$BUNDLE_DIR/static" "$BUNDLE_DIR/plugins"
|
||||
|
||||
# Server + lib
|
||||
cp "$SLOPSMITH_DIR/server.py" "$BUNDLE_DIR/"
|
||||
# Server + lib. Copy ALL top-level .py modules, not just server.py — core
|
||||
# grows sibling modules (e.g. appstate.py, added in core#833) and a stale
|
||||
# whitelist here ships a server.py whose imports are missing, crashing the
|
||||
# packaged backend with ModuleNotFoundError on startup.
|
||||
cp "$SLOPSMITH_DIR"/*.py "$BUNDLE_DIR/"
|
||||
cp "$SLOPSMITH_DIR/VERSION" "$BUNDLE_DIR/"
|
||||
cp -r "$SLOPSMITH_DIR/lib" "$BUNDLE_DIR/"
|
||||
rm -rf "$BUNDLE_DIR/lib/__pycache__"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user