Skip to content

Commit 7447512

Browse files
authored
Add Flatpak base support (#64)
Adds the ability to define a Flatpak base to an app as part of a build.
1 parent f1c2628 commit 7447512

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

cookiecutter.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
"flatpak_runtime": "org.freedesktop.Platform",
1313
"flatpak_runtime_version": "21.08",
1414
"flatpak_sdk": "org.freedesktop.Sdk",
15+
"flatpak_base": "",
16+
"flatpak_base_version": "",
1517
"finish_args": "",
1618
"modules_extra_content": "",
1719
"python_version": "3.X.0",

{{ cookiecutter.format }}/manifest.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ app-id: {{ cookiecutter.bundle_identifier }}
22
default-branch: {{ cookiecutter.version }}
33
runtime: {{ cookiecutter.flatpak_runtime }}
44
runtime-version: '{{ cookiecutter.flatpak_runtime_version }}'
5+
{%- if cookiecutter.flatpak_base or cookiecutter.flatpak_base_version %}
6+
base: {{ cookiecutter.flatpak_base }}
7+
base-version: '{{ cookiecutter.flatpak_base_version }}'
8+
{%- endif %}
59
sdk: {{ cookiecutter.flatpak_sdk }}
610
command: {{ cookiecutter.app_name }}
711
build-options:

0 commit comments

Comments
 (0)