From 391fe23b20593fe07267f9952fc05e65724d4597 Mon Sep 17 00:00:00 2001 From: Denis Nutiu Date: Fri, 18 Nov 2022 23:16:57 +0200 Subject: [PATCH] Add snapcraft.yaml --- .gitignore | 1 + go.mod | 2 +- readme.md | 6 ++++++ snap/snapcraft.yaml | 24 ++++++++++++++++++++++++ 4 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 snap/snapcraft.yaml diff --git a/.gitignore b/.gitignore index 24d2452..0f5cd68 100644 --- a/.gitignore +++ b/.gitignore @@ -17,3 +17,4 @@ hotalert # Dependency directories (remove the comment below to include it) # vendor/ +**.snap \ No newline at end of file diff --git a/go.mod b/go.mod index d21e5e0..d3b8c71 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module hotalert -go 1.18 +go 1.19 require ( github.com/spf13/cobra v1.6.0 diff --git a/readme.md b/readme.md index dbacfc0..0b830ea 100644 --- a/readme.md +++ b/readme.md @@ -3,6 +3,12 @@ ## Introduction hotalert is a command line tool for task execution and alerting. Tasks and alerts are defined in yaml files. +## Installation + +**Snapstore** + +Get the snap: https://snapcraft.io/hotalert/preview + ### Example If you want to send a notification to your mobile phone when a keyword is found on a website you can use the `webhook_discord` alerter and the `web_scrape` task function. diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml new file mode 100644 index 0000000..70f2ea4 --- /dev/null +++ b/snap/snapcraft.yaml @@ -0,0 +1,24 @@ +name: hotalert +summary: A command line tool for task execution and alerting +description: | + hotalert is a command line tool for task execution and alerting. Tasks and alerts are defined in yaml files. +version: git +grade: stable +base: core20 +architectures: + - build-on: amd64 + - build-on: arm64 + +confinement: devmode + +apps: + hotalert: + command: bin/hotalert + plugs: + - home +parts: + hotalert: + plugin: go + go-channel: 1.19/stable + source-type: git + source: https://github.com/dnutiu/hotalert \ No newline at end of file