From 5166cb1ddeff708a2166aff5ce5e36e51a2b3010 Mon Sep 17 00:00:00 2001 From: Lyn Perrine Date: Tue, 21 Apr 2020 21:58:28 -0700 Subject: [PATCH] Use new snapcraft.yaml thanks popey --- snap/local/lubuntu-manual.sh | 2 ++ snap/snapcraft.yaml | 19 +++++++++++-------- 2 files changed, 13 insertions(+), 8 deletions(-) create mode 100644 snap/local/lubuntu-manual.sh diff --git a/snap/local/lubuntu-manual.sh b/snap/local/lubuntu-manual.sh new file mode 100644 index 00000000..bb644bbb --- /dev/null +++ b/snap/local/lubuntu-manual.sh @@ -0,0 +1,2 @@ +#! /bin/sh +xdg-open file://$SNAP/build/html/index.html diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index d191c9d5..4f267997 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -1,23 +1,26 @@ name: lubuntu-manual # you probably want to 'snapcraft register ' base: core18 # the base snap is the execution environment for this snap -version: '20.04-beta' # just for humans, typically '1.2+git' or '1.3.2' +version: '20.04-alpha' # just for humans, typically '1.2+git' or '1.3.2' summary: Documentation for Lubuntu # 79 char long summary description: | This snap contains the Manual for Lubuntu which includes all of the default program as well as documentation for LXQt. See https://lubuntu.me for more info. grade: devel # must be 'stable' to release into candidate/stable channels -confinement: classic # use 'strict' once you have the right plugs and slots +confinement: strict # use 'strict' once you have the right plugs and slots parts: my-part: source: https://phab.lubuntu.me/source/manual.git - build-packages: [python3-pip, python3-sphinx, python3-sphinx-rtd-theme, python3-sphinx-bootstrap-theme] + source-type: git + build-packages: [python3-pip, python3-sphinx, latexmk, python3-sphinx-rtd-theme, python3-sphinx-bootstrap-theme] plugin: make make-parameters: [html] artifacts: [build/html/] + launcher: + source: snap/local + plugin: dump apps: - lubuntu-manual: - command: /usr/bin/xdg-open /snap/lubuntu-manual/current/build/html/index.html - - - + lubuntu-manual: + command: lubuntu-manual.sh + plugs: + - desktop