From 5772755e5425d4c9359ae841bf73bc1e8db7d697 Mon Sep 17 00:00:00 2001 From: Alex Murray Date: Thu, 15 Aug 2019 15:31:22 +0930 Subject: [PATCH 1/2] Add snapcraft.yaml --- snap/snapcraft.yaml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 snap/snapcraft.yaml diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml new file mode 100644 index 0000000..dd54b57 --- /dev/null +++ b/snap/snapcraft.yaml @@ -0,0 +1,29 @@ +name: grip +base: core18 # the base snap is the execution environment for this snap +version: 4.5.2 +summary: GitHub Readme Instant Preview +description: | + Render local readme files before sending off to GitHub. + + Grip is a command-line server application written in Python that uses the + GitHub markdown API to render a local readme file. The styles and + rendering come directly from GitHub, so you'll know exactly how it will + appear. Changes you make to the Readme will be instantly reflected in the + browser without requiring a page refresh. + +grade: stable # must be 'stable' to release into candidate/stable channels +confinement: strict # use 'strict' once you have the right plugs and slots + +parts: + grip: + # See 'snapcraft plugins' + plugin: python + source: . + python-version: python3 + +apps: + grip: + command: bin/grip + plugs: + - home + - network-bind From 8b40031789af29a3b0ba3151992b3b310f00e887 Mon Sep 17 00:00:00 2001 From: Alex Murray Date: Thu, 15 Aug 2019 15:45:07 +0930 Subject: [PATCH 2/2] snap: Plug the desktop interface so that --browser works correctly --- snap/snapcraft.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index dd54b57..c0cd3ca 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -27,3 +27,4 @@ apps: plugs: - home - network-bind + - desktop # so can launch browser