From dca593ce13abafeedcec8e3b372e0d56f57ea581 Mon Sep 17 00:00:00 2001 From: Nathan Musoke Date: Sat, 28 Apr 2018 18:28:33 +1200 Subject: [PATCH] Add snacraft config This allows the easy generation of snaps as requested in #227. This commit does not add automatic generation and publication of snaps to the Snap Store, but they can easily be generated for local/personal use by ``` snapcraft sudo snap install gutenberg_xxx.snap ``` Add directories with snapcraft artifacts to `.gitignore`. --- .gitignore | 6 ++++++ snap/snapcraft.yaml | 21 +++++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 snap/snapcraft.yaml diff --git a/.gitignore b/.gitignore index 23e585f..ef376f6 100644 --- a/.gitignore +++ b/.gitignore @@ -13,3 +13,9 @@ huge-kb current.bench now.bench + +# snapcraft artifacts +snap/.snapcraft +parts +prime +stage diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml new file mode 100644 index 0000000..b51def4 --- /dev/null +++ b/snap/snapcraft.yaml @@ -0,0 +1,21 @@ +name: gutenberg # you probably want to 'snapcraft register ' +version: '0.3.3+git' # just for humans, typically '1.2+git' or '1.3.2' +summary: A fast static site generator in a single binary with everything built-in. +description: | + A fast static site generator in a single binary with everything built-in. + https://www.getgutenberg.io + +grade: devel # must be 'stable' to release into candidate/stable channels +confinement: strict # use 'strict' once you have the right plugs and slots + +apps: + gutenberg: + command: gutenberg + plugs: + - network + - network-bind + +parts: + gutenberg: + plugin: rust + rust-channel: stable