Skip to content

Commit

Permalink
Merge pull request #33 from beeware/permissions
Browse files Browse the repository at this point in the history
Add extension points for permissions.
  • Loading branch information
freakboy3742 authored Jan 15, 2024
2 parents eabd54d + d4e2fff commit a71c8a6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 18 deletions.
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

0 comments on commit a71c8a6

Please sign in to comment.