新增:打包编译功能
This commit is contained in:
1
backend/extra-hooks/__init__.py
Normal file
1
backend/extra-hooks/__init__.py
Normal file
@@ -0,0 +1 @@
|
||||
# 用于build exe 使用
|
||||
6
backend/extra-hooks/hooks-uvicorn.py
Normal file
6
backend/extra-hooks/hooks-uvicorn.py
Normal file
@@ -0,0 +1,6 @@
|
||||
# extra-hooks/hooks-uvicorn.py
|
||||
from PyInstaller.utils.hooks import get_package_paths, collect_submodules
|
||||
|
||||
datas = [(get_package_paths('uvicorn')[1], 'uvicorn'), (get_package_paths('whitenoise')[1], 'whitenoise')]
|
||||
|
||||
hiddenimports = collect_submodules('whitenoise')
|
||||
Reference in New Issue
Block a user