Added snap support

This commit is contained in:
Zoraiz 2021-05-25 17:33:10 +05:00
parent 8e853d5b21
commit 3a2d7daabf
2 changed files with 39 additions and 0 deletions

View File

@ -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
```

31
snapcraft.yaml Normal file
View File

@ -0,0 +1,31 @@
name: ascii-image-converter # you probably want to 'snapcraft register <name>'
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]