fix(build): make PyInstaller include backend modules

This commit is contained in:
2026-01-31 12:40:48 +01:00
parent 9d57df0dd0
commit 9477da4e43
4 changed files with 44 additions and 4 deletions

View File

@@ -10,7 +10,7 @@
"dev:electron": "wait-on http://localhost:5173 && electron .",
"dev": "concurrently -k \"npm:dev:backend\" \"npm:dev:frontend\" \"npm:dev:electron\"",
"build:frontend": "vite build --config frontend/vite.config.js",
"build:backend": "pyinstaller --name addressgen-backend --onefile backend/app.py --distpath backend/dist --workpath backend/build --specpath backend",
"build:backend": "pyinstaller --name addressgen-backend --onefile backend/app.py --paths backend --hidden-import p2pk --hidden-import p2pkh --hidden-import p2sh --hidden-import p2tr --hidden-import p2wpkh --distpath backend/dist --workpath backend/build --specpath backend",
"build": "npm run build:frontend && npm run build:backend && electron-builder --linux"
},
"devDependencies": {