I am trying to snap the lubuntu manual which is written using restructed text and compiled into an html file using sphinx. I do not know how to make the documentation which I have being built fine using make appear to an end user on a menu. I am having trouble getting a way for end users to launch the manual as it executes nothing and is just a lot of html files. I think the part under app is all wrong.
my snapcraft.yaml is
name: lubuntu-manual # you probably want to 'snapcraft register <name>'
base: core18 # the base snap is the execution environment for this snap
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: 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, latexmk, python3-sphinx-rtd-theme, python3-sphinx-bootstrap-theme]
plugin: make
make-parameters: [html]
artifacts: [build/html/]
apps:
lubuntu-manual:
command: xdg-open /snap/lubuntu-manual/x2/build/html/index.html
name: lubuntu-manual # you probably want to 'snapcraft register <name>'
base: core18 # the base snap is the execution environment for this snap
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: 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, 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: lubuntu-manual.sh
plugs:
- desktop
And drop this file as lubuntu-manual.sh in snap/local/bin:
I get this error message
Failed to pull source: unable to determine source type of βsnap/localβ.
Check that the URL is correct or consider specifying source-type for this part. See snapcraft help for more information.
Run the same command again with --debug to shell into the environment if you wish to introspect this failure.
Snaps are containerised software packages that are simple to create and
install. They auto-update and are safe to run. And because they bundle
their dependencies, they work on all major Linux systems without
modification.
commands: