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 990eaa0 commit 37439dd
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
4 changes: 3 additions & 1 deletion cookiecutter.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@
"module_name": "{{ cookiecutter.app_name|replace('-', '_') }}",
"author": "Example Corporation",
"bundle": "com.example",
"permissions": "",
"entitlements": "",
"document_types": "",
"version": "1.0",
"build": "1",
"document_types": {},
"python_version": "3.X.0",
"universal_build": true,
"host_arch": "arm64",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,5 +83,11 @@
{% endfor %}
</array>
{% endif %}
{%- if cookiecutter.permissions -%}
{%- for permission, value in cookiecutter.permissions.items() %}
<key>{{ permission }}</key>
{{ value|plist_value }}
{%- endfor -%}
{%- endif %}
</dict>
</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>

0 comments on commit 37439dd

Please sign in to comment.