Skip to content

Commit

Permalink
Add example for a policy extension point
Browse files Browse the repository at this point in the history
  • Loading branch information
andrunko authored and refi64 committed Dec 15, 2020
1 parent 8b296ce commit 42c3ce6
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
3 changes: 3 additions & 0 deletions examples/policies/google-safe-search/google-safe-search.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"ForceGoogleSafeSearch": true
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
app-id: org.chromium.Chromium.Policy.google-safe-search
# This should match the extension point version
branch: '1'
runtime: org.chromium.Chromium
runtime-version: 'stable'
sdk: org.freedesktop.Sdk//20.08
build-extension: true
appstream-compose: false

modules:
- name: policy
buildsystem: simple
build-commands:
- mkdir -p ${FLATPAK_DEST}/policies/managed
- install -Dm 644 google-safe-search.json ${FLATPAK_DEST}/policies/managed
sources:
- type: file
path: google-safe-search.json

0 comments on commit 42c3ce6

Please sign in to comment.