diff --git a/README.md b/README.md index 267abb9..dc5ba16 100644 --- a/README.md +++ b/README.md @@ -22,6 +22,14 @@ Image formats currently supported: ## Installation +### Snap + +You can download through snap. However, the snap will not have access to hidden images and images outside the $HOME directory. + +``` +sudo snap install ascii-image-converter --stable +``` + ### Go For custom Go installs ``` diff --git a/snapcraft.yaml b/snapcraft.yaml new file mode 100644 index 0000000..122c0aa --- /dev/null +++ b/snapcraft.yaml @@ -0,0 +1,31 @@ +name: ascii-image-converter # you probably want to 'snapcraft register ' +base: core18 # the base snap is the execution environment for this snap +version: '1.2.0' # just for humans, typically '1.2+git' or '1.3.2' +summary: Converts images into ascii format +description: | + This tool converts images into ascii format and prints them onto the terminal window. + Supported image formats are JPEG/JPG, PNG, WEBP, BMP and TIFF/TIF. Further configuration can be managed by flags. + +grade: stable +confinement: strict + +license: Apache-2.0 + +parts: + ascii-image-converter: + plugin: go + go-importpath: github.com/TheZoraiz/ascii-image-converter + source: . + source-type: git + build-packages: + - gcc + +apps: + ascii-image-converter: + command: bin/ascii-image-converter + plugs: + - home + +architectures: + - build-on: amd64 + run-on: [arm64, armhf, amd64, i386]