modify: build project_name
This commit is contained in:
parent
f6c8601dc3
commit
7e6702181e
@ -56,7 +56,7 @@ def run_pyinstaller():
|
|||||||
"PyInstaller",
|
"PyInstaller",
|
||||||
"--onefile",
|
"--onefile",
|
||||||
"--name",
|
"--name",
|
||||||
"chakcy",
|
"{{ cookiecutter.project_name }}",
|
||||||
"--distpath",
|
"--distpath",
|
||||||
".",
|
".",
|
||||||
"--workpath",
|
"--workpath",
|
||||||
@ -131,7 +131,7 @@ def run_pyinstaller():
|
|||||||
# "--add-data", "resources:resources",
|
# "--add-data", "resources:resources",
|
||||||
# 其他选项
|
# 其他选项
|
||||||
"--icon",
|
"--icon",
|
||||||
"../../public/chakcy.ico",
|
"../../public/{{ cookiecutter.project_name }}.ico",
|
||||||
"main.py",
|
"main.py",
|
||||||
]
|
]
|
||||||
|
|
||||||
@ -157,12 +157,14 @@ def main():
|
|||||||
if not resources_path.exists():
|
if not resources_path.exists():
|
||||||
resources_path.mkdir()
|
resources_path.mkdir()
|
||||||
app_packer = PythonToSQLite("./resources/app.mbank")
|
app_packer = PythonToSQLite("./resources/app.mbank")
|
||||||
app_packer.pack_directory("src/chakcy/app", "app")
|
app_packer.pack_directory("src/{{ cookiecutter.project_name }}/app", "app")
|
||||||
app_packer.verify_package_structure()
|
app_packer.verify_package_structure()
|
||||||
app_packer.delete_source_code(None)
|
app_packer.delete_source_code(None)
|
||||||
|
|
||||||
plugin_packer = PythonToSQLite("./resources/plugins.mbank")
|
plugin_packer = PythonToSQLite("./resources/plugins.mbank")
|
||||||
plugin_packer.pack_directory("src/chakcy/plugins", "plugins")
|
plugin_packer.pack_directory(
|
||||||
|
"src/{{ cookiecutter.project_name }}/plugins", "plugins"
|
||||||
|
)
|
||||||
plugin_packer.verify_package_structure()
|
plugin_packer.verify_package_structure()
|
||||||
plugin_packer.delete_source_code(None)
|
plugin_packer.delete_source_code(None)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user