Skip to content

Commit

Permalink
Add configuration section for .deb projects.
Browse files Browse the repository at this point in the history
  • Loading branch information
freakboy3742 committed Feb 5, 2023
1 parent 0dcaf1d commit fae2a0d
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
1 change: 1 addition & 0 deletions cookiecutter.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"pytest",
"unittest"
],
"briefcase_version": "Unknown",
"template": "Not provided",
"branch": "Not provided",
"_extensions": [
Expand Down
21 changes: 20 additions & 1 deletion {{ cookiecutter.app_name }}/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# This project was generated using template: {{ cookiecutter.template }} and branch: {{ cookiecutter.branch }}
# This project was generated with {{ cookiecutter.briefcase_version }} using template: {{ cookiecutter.template }}@{{ cookiecutter.branch }}
[tool.briefcase]
project_name = "{{ cookiecutter.project_name|escape_toml }}"
bundle = "{{ cookiecutter.bundle }}"
Expand Down Expand Up @@ -49,6 +49,25 @@ requires = [
{% endif -%}
]

[tool.briefcase.app.{{ cookiecutter.app_name }}.linux.deb]
system_requires = [
{%- if cookiecutter.gui_framework == "Toga" %}
# Needed to compile pycairo wheel
'libcairo2-dev',
# Needed to compile PyGObject wheel
'libgirepository1.0-dev',
{% endif -%}
]

system_runtime_requires = [
{%- if cookiecutter.gui_framework == "Toga" %}
# Needed to provide GTK
"libgtk-3-0",
# Needed to provide WebKit2 at runtime
"libwebkit2gtk-4.0-37",
{% endif -%}
]

[tool.briefcase.app.{{ cookiecutter.app_name }}.linux.appimage]
system_requires = [
{%- if cookiecutter.gui_framework == "Toga" %}
Expand Down

0 comments on commit fae2a0d

Please sign in to comment.