Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add extension points for permissions. #33

Merged
merged 1 commit into from
Jan 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions cookiecutter.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
"flatpak_runtime": "org.freedesktop.Platform",
"flatpak_runtime_version": "21.08",
"flatpak_sdk": "org.freedesktop.Sdk",
"finish_args": "",
"modules_extra_content": "",
"python_version": "3.X.0",
"_extensions": [
"briefcase.integrations.cookiecutter.PythonVersionExtension"
Expand Down
26 changes: 8 additions & 18 deletions {{ cookiecutter.format }}/manifest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,13 @@ cleanup:
- /include
- /share/man
finish-args:
# X11 + XShm access
- --share=ipc
- --socket=x11
# Disable Wayland access
- --nosocket=wayland
# Network access
- --share=network
# GPU access
- --device=dri
# Sound access
- --socket=pulseaudio
# Host filesystem access
- --filesystem=xdg-cache
- --filesystem=xdg-config
- --filesystem=xdg-data
- --filesystem=xdg-documents
# DBus access
- --socket=session-bus
{%- if cookiecutter.finish_args -%}
{%- for arg, enabled in cookiecutter.finish_args.items() -%}
{%- if enabled %}
- --{{ arg }}
{%- endif -%}
{%- endfor -%}
{%- endif %}
modules:
- name: cpython
buildsystem: simple
Expand Down Expand Up @@ -67,6 +56,7 @@ modules:
- --share=network # For downloaded requirements.
build-commands:
- /app/bin/python3 -m pip install --upgrade pip
{{ cookiecutter.modules_extra_content }}
- name: app_packages
buildsystem: simple
build-options:
Expand Down