modiy: resources 资源

This commit is contained in:
chakcy 2026-01-31 16:10:50 +08:00
parent 4b4772ac6e
commit 665563aefe
2 changed files with 4 additions and 1 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 232 KiB

View File

@ -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()