Added macOS support (#6)

This commit is contained in:
Zoraiz 2021-08-01 15:57:03 +05:00
parent 70c91d7114
commit 93f6d83216
4 changed files with 45 additions and 14 deletions

View File

@ -4,10 +4,8 @@ before:
hooks:
- go mod tidy
builds:
- env:
- CGO_ENABLED=0
builds:
-
goos:
- linux
- windows
@ -67,6 +65,31 @@ changelog:
- '^docs:'
- '^test:'
brews:
-
name: ascii-image-converter
tap:
owner: TheZoraiz
name: homebrew-ascii-image-converter
url_template: https://github.com/TheZoraiz/ascii-image-converter/releases/download/{{ .Tag }}/{{ .ArtifactName }}
commit_author:
name: Zoraiz Hassan
email: hzoraiz8@gmail.com
homepage: https://github.com/TheZoraiz/ascii-image-converter
description: Convert images into ascii art
license: Apache 2.0
skip_upload: true
test: |
system "#{bin}/ascii-image-converter --version"
install: |
bin.install "ascii-image-converter"
nfpms:
-
package_name: ascii-image-converter
@ -88,4 +111,4 @@ nfpms:
bindir: /usr/bin
rpm:
compression: lzma
compression: lzma

View File

@ -1,3 +1,4 @@
# ascii-image-converter
[![release version](https://img.shields.io/github/v/release/TheZoraiz/ascii-image-converter?label=Latest%20Version)](https://github.com/TheZoraiz/ascii-image-converter/releases/latest)
@ -6,9 +7,7 @@
![Github All Releases](https://img.shields.io/github/downloads/TheZoraiz/ascii-image-converter/total?color=brightgreen&label=Release%20Downloads)
[![ascii-image-converter](https://snapcraft.io/ascii-image-converter/badge.svg)](https://snapcraft.io/ascii-image-converter)
ascii-image-converter is a command-line tool that converts images into ascii art and prints them out onto the console. It is cross-platform so both Windows and Linux distributions are supported. GIFs are now experimentally supported as well.
It's also available as a package to be used in Go applications.
ascii-image-converter is a command-line tool that converts images into ascii art and prints them out onto the console. Available on Windows, Linux and macOS. GIFs are now experimentally supported as well.
Input formats currently supported:
* JPEG/JPG
@ -22,7 +21,8 @@ Input formats currently supported:
- [Installation](#installation)
* [Debian / Ubuntu-based](#debian-or-ubuntu-based-distros)
* [Snap](#snap)
* [Homebrew](#homebrew)
* [Snap](#brew)
* [Go](#go)
* [Linux (binaries)](#linux)
* [Windows (binaries)](#windows)
@ -51,11 +51,19 @@ sudo apt install -y ascii-image-converter
<hr>
### Homebrew
Installation with homebrew is available for both Linux and macOS.
```
brew install TheZoraiz/ascii-image-converter/ascii-image-converter
```
<hr>
### Snap
You can download through snap.
Note: The snap will not have access to hidden images and images outside the $HOME directory. This includes write access for saving ascii images and text files as well.
Note: The snap will not have access to hidden files and files outside the $HOME directory. This includes write access for saving ascii art as well.
```
sudo snap install ascii-image-converter
@ -311,7 +319,7 @@ Note: The library may throw errors during Go tests due to some unresolved bugs w
First, install the library with:
```
go get github.com/TheZoraiz/ascii-image-converter/aic_package
go get -u github.com/TheZoraiz/ascii-image-converter/aic_package
```
The library is to be used as follows:

View File

@ -49,7 +49,7 @@ var (
rootCmd = &cobra.Command{
Use: "ascii-image-converter [image paths/urls]",
Short: "Converts images and gifs into ascii art",
Version: "1.4.1",
Version: "1.4.2",
Long: "This tool converts images into ascii art and prints them on the terminal.\nFurther configuration can be managed with flags.",
// Not RunE since help text is getting larger and seeing it for every error impacts user experience

View File

@ -1,6 +1,6 @@
name: ascii-image-converter
base: core18
version: "1.4.1"
version: "1.4.2"
summary: Convert images and gifs into ascii art
description: |
This tool converts images and gifs into ascii format and prints them onto the terminal window.