From 3fc69e1febf2a0d40668bf62d040c4d55c303d6f Mon Sep 17 00:00:00 2001 From: Rafael Villar Burke Date: Tue, 2 Jul 2024 10:01:11 +0200 Subject: [PATCH] Preliminary support to access packages (local and remote) The needed locations are documented at https://github.com/typst/packages/tree/main This configuration may be incomplete and may need further approval from snapcraft admins that should be requested in the forum. --- snapcraft.tpl.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/snapcraft.tpl.yaml b/snapcraft.tpl.yaml index 03c7249..1ad2303 100644 --- a/snapcraft.tpl.yaml +++ b/snapcraft.tpl.yaml @@ -24,6 +24,16 @@ parts: build-packages: - pkg-config +plugs: + dot-local-share-typst: + interface: personal-files + write: + - $HOME/.local/share/typst + dot-cache-typst: + interface: personal-files + write: + - $HOME/.cache/typst + apps: typst: command: "bin/typst" @@ -32,3 +42,5 @@ apps: - network # retrieve packages - home # read sources and write output - removable-media # read sources on media + - dot-local-share-typst # read/write ~/.local/share/typst + - dot-cache-typst # read/write ~/.cache/typst