Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Publish to Homebrew and MacPort? #15

Open
ShikiSuen opened this issue Aug 5, 2019 · 4 comments
Open

Publish to Homebrew and MacPort? #15

ShikiSuen opened this issue Aug 5, 2019 · 4 comments

Comments

@ShikiSuen
Copy link

This makes it easier to be installed as CLI.

@45gfg9
Copy link

45gfg9 commented Mar 7, 2020

I really want this. It would be really convenient if this can be installed via brew or port.

@imxieyi
Copy link
Owner

imxieyi commented Mar 7, 2020

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.

@45gfg9
Copy link

45gfg9 commented Mar 7, 2020

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"

@imxieyi
Copy link
Owner

imxieyi commented Mar 7, 2020

Cool! I updated readme to include instructions on Homebrew.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants