Added macOS support (#6)
This commit is contained in:
parent
70c91d7114
commit
93f6d83216
|
|
@ -5,9 +5,7 @@ before:
|
||||||
- go mod tidy
|
- go mod tidy
|
||||||
|
|
||||||
builds:
|
builds:
|
||||||
- env:
|
-
|
||||||
- CGO_ENABLED=0
|
|
||||||
|
|
||||||
goos:
|
goos:
|
||||||
- linux
|
- linux
|
||||||
- windows
|
- windows
|
||||||
|
|
@ -67,6 +65,31 @@ changelog:
|
||||||
- '^docs:'
|
- '^docs:'
|
||||||
- '^test:'
|
- '^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:
|
nfpms:
|
||||||
-
|
-
|
||||||
package_name: ascii-image-converter
|
package_name: ascii-image-converter
|
||||||
|
|
|
||||||
22
README.md
22
README.md
|
|
@ -1,3 +1,4 @@
|
||||||
|
|
||||||
# ascii-image-converter
|
# ascii-image-converter
|
||||||
|
|
||||||
[](https://github.com/TheZoraiz/ascii-image-converter/releases/latest)
|
[](https://github.com/TheZoraiz/ascii-image-converter/releases/latest)
|
||||||
|
|
@ -6,9 +7,7 @@
|
||||||

|

|
||||||
[](https://snapcraft.io/ascii-image-converter)
|
[](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.
|
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.
|
||||||
|
|
||||||
It's also available as a package to be used in Go applications.
|
|
||||||
|
|
||||||
Input formats currently supported:
|
Input formats currently supported:
|
||||||
* JPEG/JPG
|
* JPEG/JPG
|
||||||
|
|
@ -22,7 +21,8 @@ Input formats currently supported:
|
||||||
|
|
||||||
- [Installation](#installation)
|
- [Installation](#installation)
|
||||||
* [Debian / Ubuntu-based](#debian-or-ubuntu-based-distros)
|
* [Debian / Ubuntu-based](#debian-or-ubuntu-based-distros)
|
||||||
* [Snap](#snap)
|
* [Homebrew](#homebrew)
|
||||||
|
* [Snap](#brew)
|
||||||
* [Go](#go)
|
* [Go](#go)
|
||||||
* [Linux (binaries)](#linux)
|
* [Linux (binaries)](#linux)
|
||||||
* [Windows (binaries)](#windows)
|
* [Windows (binaries)](#windows)
|
||||||
|
|
@ -51,11 +51,19 @@ sudo apt install -y ascii-image-converter
|
||||||
|
|
||||||
<hr>
|
<hr>
|
||||||
|
|
||||||
|
### Homebrew
|
||||||
|
|
||||||
|
Installation with homebrew is available for both Linux and macOS.
|
||||||
|
```
|
||||||
|
brew install TheZoraiz/ascii-image-converter/ascii-image-converter
|
||||||
|
```
|
||||||
|
|
||||||
|
<hr>
|
||||||
|
|
||||||
### Snap
|
### 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
|
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:
|
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:
|
The library is to be used as follows:
|
||||||
|
|
|
||||||
|
|
@ -49,7 +49,7 @@ var (
|
||||||
rootCmd = &cobra.Command{
|
rootCmd = &cobra.Command{
|
||||||
Use: "ascii-image-converter [image paths/urls]",
|
Use: "ascii-image-converter [image paths/urls]",
|
||||||
Short: "Converts images and gifs into ascii art",
|
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.",
|
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
|
// Not RunE since help text is getting larger and seeing it for every error impacts user experience
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
name: ascii-image-converter
|
name: ascii-image-converter
|
||||||
base: core18
|
base: core18
|
||||||
version: "1.4.1"
|
version: "1.4.2"
|
||||||
summary: Convert images and gifs into ascii art
|
summary: Convert images and gifs into ascii art
|
||||||
description: |
|
description: |
|
||||||
This tool converts images and gifs into ascii format and prints them onto the terminal window.
|
This tool converts images and gifs into ascii format and prints them onto the terminal window.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue