Skip to content

Commit

Permalink
fix: python server not starting
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronm-2112 committed Aug 22, 2024
1 parent 6bb7455 commit 903e687
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions hooks/hook-backports.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
from PyInstaller.utils.hooks import collect_submodules

# Collect all submodules from the backports package
hiddenimports = collect_submodules('backports')
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
"build:win": "npm run python-onefile-build-win && npm run build && electron-builder --win --config",
"build:mac": "npm run build && electron-builder --mac --config",
"build:linux": "npm run build && electron-builder --linux --config",
"python-onefile-build-win": "python -m PyInstaller --onefile --add-data ./src/pyflask/libcrypto-1_1-x64.dll;. --add-data ./src/pyflask/libssl-1_1-x64.dll;. --clean ./src/pyflask/app.py --distpath ./pyflaskdist",
"python-onefile-build-unix": "python -m PyInstaller --onefile --clean ./src/pyflask/app.py --distpath ./pyflaskdist",
"python-onefile-build-win": "python -m PyInstaller --onefile --add-data ./src/pyflask/libcrypto-1_1-x64.dll;. --add-data ./src/pyflask/libssl-1_1-x64.dll;. --additional-hooks-dir=./hooks/hook-backports.py;. --clean ./src/pyflask/app.py --distpath ./pyflaskdist",
"python-onefile-build-unix": "python -m PyInstaller --onefile --clean ./src/pyflask/app.py --additional-hooks-dir=./hooks/hook-backports.py --distpath ./pyflaskdist",
"deploy-win": "npm run python-onefile-build-win && npm run build && electron-builder --win --config --publish always",
"deploy-linux": "npm run python-onefile-build-unix && npm run build && electron-builder --linux --config --publish always",
"deploy-mac": "npm run python-onefile-build-unix && npm run build && electron-builder --mac --config --publish always"
Expand Down

0 comments on commit 903e687

Please sign in to comment.