waifu2x-mac
waifu2x-mac copied to clipboard
Publish to Homebrew and MacPort?
This makes it easier to be installed as CLI.
I really want this. It would be really convenient if this can be installed via brew
or port
.
Unfortunately building from source is not possible because Xcode is not allowed to download dependencies in Homebrew sandbox. I tried to create a formulae installing from compiled binary. You can try it out by running:
brew install imxieyi/waifu2x/waifu2x
Please provide feedback if it does not work.
Working for me here. OS: macOS 10.14.6 brew: version 2.2.9
$ brew install imxieyi/waifu2x/waifu2x
==> Tapping imxieyi/waifu2x
Cloning into '/usr/local/Homebrew/Library/Taps/imxieyi/homebrew-waifu2x'...
remote: Enumerating objects: 6, done.
remote: Counting objects: 100% (6/6), done.
remote: Compressing objects: 100% (5/5), done.
Receiving objects: 100% (6/6), done.
remote: Total 6 (delta 0), reused 6 (delta 0), pack-reused 0
Tapped 1 formula (26 files, 34.5KB).
==> Installing waifu2x from imxieyi/waifu2x
==> Downloading https://github.com/imxieyi/waifu2x-mac/releases/download/v0.0.3/waifu2x-mac-cli.zip
==> Downloading from https://github-production-release-asset-2e65be.s3.amazonaws.com/118729081/e28cc200-60a4-11ea-9151-e
######################################################################## 100.0%
==> mkdir -p /usr/local/Cellar/waifu2x/0.0.3/bin
==> mkdir -p /usr/local/Cellar/waifu2x/0.0.3/Frameworks
==> cp waifu2x /usr/local/Cellar/waifu2x/0.0.3/bin/waifu2x
==> cp -r waifu2x_mac.framework /usr/local/Cellar/waifu2x/0.0.3/Frameworks/waifu2x_mac.framework
🍺 /usr/local/Cellar/waifu2x/0.0.3: 375 files, 112.6MB, built in 46 seconds
$ which waifu2x
/usr/local/bin/waifu2x
$ waifu2x -s 2 -n 4 -i 0-3.png -o 0-4.png
"With Alpha: true"
2020-03-08 02:44:44.569 waifu2x[18245:33727686] Bits per component: 8
"Really With Alpha: false"
Cool! I updated readme to include instructions on Homebrew.