From 9e89fc57146bfc157774c8b5539c8d003769492d Mon Sep 17 00:00:00 2001 From: Dariusz Gadomski Date: Fri, 7 Dec 2018 10:22:13 +0100 Subject: [PATCH] Add snapcraft.yaml to enable snap builds. --- snap/snapcraft.yaml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 snap/snapcraft.yaml diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml new file mode 100644 index 0000000..47491ef --- /dev/null +++ b/snap/snapcraft.yaml @@ -0,0 +1,27 @@ +name: wuzz +summary: Interactive cli tool for HTTP inspection +description: | + Wuzz command line arguments are similar to cURL's arguments, so it can be + used to inspect/modify requests copied from the browser's network inspector + with the "copy as cURL" feature. +adopt-info: wuzz +confinement: strict + +apps: + wuzz: + command: bin/wuzz + plugs: [ network ] +parts: + wuzz: + source: . + plugin: go + go-importpath: github.com/asciimoo/wuzz + override-pull: | + snapcraftctl pull + version="$(git describe --always | sed -e 's/-/+git/;y/-/./')" + [ -n "$(echo $version | grep "+git")" ] && grade=devel || grade=stable + snapcraftctl set-version "$version" + snapcraftctl set-grade "$grade" + after: [go] + go: + source-tag: go1.10.5