modiy: resources 资源
This commit is contained in:
parent
4b4772ac6e
commit
665563aefe
Binary file not shown.
|
After Width: | Height: | Size: 232 KiB |
@ -47,7 +47,7 @@ def run_pyinstaller():
|
||||
# 添加数据文件
|
||||
# "--add-data", "resources:resources",
|
||||
# 其他选项
|
||||
"--icon", "../resources/{{ cookiecutter.project_name }}.ico",
|
||||
"--icon", "../public/{{ cookiecutter.project_name }}.ico",
|
||||
"main.py"
|
||||
]
|
||||
|
||||
@ -68,6 +68,9 @@ def run_pyinstaller():
|
||||
|
||||
def main():
|
||||
# 打包模块
|
||||
resources_path = Path("resources")
|
||||
if not resources_path.exists():
|
||||
resources_path.mkdir()
|
||||
app_packer = PythonToSQLite("./resources/app.mbank")
|
||||
app_packer.pack_directory("src/{{ cookiecutter.project_name }}/app", "app")
|
||||
app_packer.verify_package_structure()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user