Skip to content

Commit

Permalink
Add extension points for permissions.
Browse files Browse the repository at this point in the history
  • Loading branch information
freakboy3742 committed Jan 11, 2024
1 parent d956088 commit 4d6b089
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 6 deletions.
7 changes: 5 additions & 2 deletions cookiecutter.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,15 @@
"formal_name": "App Name",
"app_name": "{{ cookiecutter.formal_name|lower|replace(' ', '-') }}",
"module_name": "{{ cookiecutter.app_name|replace('-', '_') }}",
"permissions": "",
"entitlements": "",
"document_types": "",
"version": "1.0.0",
"build": "1",
"bundle": "com.example",
"document_types": {},
"python_version": "3.X.0",
"_extensions": [
"briefcase.integrations.cookiecutter.PythonVersionExtension"
"briefcase.integrations.cookiecutter.PythonVersionExtension",
"briefcase.integrations.cookiecutter.PListExtension"
]
}
10 changes: 6 additions & 4 deletions {{ cookiecutter.format }}/Entitlements.plist
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.security.cs.allow-unsigned-executable-memory</key>
<true/>
<key>com.apple.security.cs.disable-library-validation</key>
<true/>
{%- if cookiecutter.entitlements -%}
{%- for entitlement, value in cookiecutter.entitlements.items() %}
<key>{{ entitlement }}</key>
{{ value|plist_value }}
{%- endfor -%}
{%- endif %}
</dict>
</plist>
Original file line number Diff line number Diff line change
Expand Up @@ -79,5 +79,11 @@
{% endfor %}
</array>
{% endif %}
{%- if cookiecutter.permissions -%}
{%- for permission, value in cookiecutter.permissions.items() %}
<key>{{ permission }}</key>
{{ value|plist_value }}
{%- endfor -%}
{%- endif %}
</dict>
</plist>

0 comments on commit 4d6b089

Please sign in to comment.