diff --git a/hooks/post_gen_project.py b/hooks/post_gen_project.py deleted file mode 100644 index 850c639..0000000 --- a/hooks/post_gen_project.py +++ /dev/null @@ -1,15 +0,0 @@ -import os -from pathlib import Path - - -BIN_PATH = Path("src") - -# Rename the stub binary we want -STUB_PATH = ( - BIN_PATH / '{% if cookiecutter.console_app %}Console{% else %}GUI{% endif %}-Stub-{{ cookiecutter.python_version|py_tag }}.exe' -) -STUB_PATH.rename(BIN_PATH / "Stub.exe") - -# Delete all remaining stubs -for stub in BIN_PATH.glob("*-Stub-*.exe"): - os.unlink(stub) diff --git a/stub/pyproject.toml b/stub/pyproject.toml index c754129..841390e 100644 --- a/stub/pyproject.toml +++ b/stub/pyproject.toml @@ -1,6 +1,7 @@ [tool.briefcase] project_name = "Stub" bundle = "org.beeware" +license.file = "../LICENSE" version = "1.0.0" [tool.briefcase.app.gui-stub] diff --git a/{{ cookiecutter.format }}/briefcase.toml b/{{ cookiecutter.format }}/briefcase.toml index 36a49b2..97f6ffd 100644 --- a/{{ cookiecutter.format }}/briefcase.toml +++ b/{{ cookiecutter.format }}/briefcase.toml @@ -12,5 +12,5 @@ support_path = "src" "3.11": "support_revision = 7", "3.12": "support_revision = 1", }.get(cookiecutter.python_version|py_tag, "") }} - +stub_binary_revision = "5" icon = "icon.ico"