bing-wallpaper icon indicating copy to clipboard operation
bing-wallpaper copied to clipboard

Brew Package

Open cpb8010 opened this issue 7 years ago • 8 comments

Have you thought about publishing this as a homebrew package for even easier install and updates?

Would you mind if someone else did?

cpb8010 avatar Dec 07 '17 17:12 cpb8010

@cpb8010, though I hadn't considered it I'm sure if you find value in it others will as well. Go for it! 😁

thejandroman avatar Jan 02 '18 14:01 thejandroman

That would be awesome! @cpb8010 did you end up making a homebrew package? If not, I might go ahead

nyarasha avatar Dec 27 '18 19:12 nyarasha

I didn't! It's been on the bottom of my list :(

On Thu, Dec 27, 2018 at 2:06 PM Karen [email protected] wrote:

That would be awesome! @cpb8010 https://github.com/cpb8010 did you end up making a homebrew package? If not, I might go ahead

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/thejandroman/bing-wallpaper/issues/14#issuecomment-450211648, or mute the thread https://github.com/notifications/unsubscribe-auth/AB9YUqS3Bwd3FGohJTCp8LHUSFZhh81oks5u9Ro3gaJpZM4Q56xD .

cpb8010 avatar Dec 27 '18 19:12 cpb8010

Okay, I took a first pass at trying to make a brew tap and package - README and tap is up here: https://github.com/nyarasha/homebrew-bing-wallpaper

Not sure how to assign myself this issue or whether someone else wants to take it up, but it's at least started.

What else do we want the installer to do, other than installing the files on the user's computer in a folder? Deal with the plist?

nyarasha avatar Dec 27 '18 21:12 nyarasha

I added mine to cron and have it run hourly, but maybe that's too much as a default. https://github.com/cpb8010/bing-wallpaper/commit/8a1bf0587199c67f78ff9086391dd9cda297edc8

@hourly /Users/username/Code/bing-wallpaper/bing-wallpaper.sh -w >/dev/null 2>&1

cpb8010 avatar Dec 27 '18 22:12 cpb8010

Yeah, I was trying to figure out how to make that user-settable or opt-in; mine runs every 10 hours via a .plist file (on Mac OSX). Any suggestions?

nyarasha avatar Dec 27 '18 22:12 nyarasha

I don't know homebrew enough to find any good examples of user input, so I'd just set a default and log some directions for manual changes.

cpb8010 avatar Dec 27 '18 23:12 cpb8010

Here's the formula you want with a service, https://github.com/laggardkernel/homebrew-tap. Cause the author of this project doesn't do a regular release, only installation from HEAD is available.

brew install --HEAD laggardkernel/tap/bing-wallpaper

The formula installs the script as bing-wallpaper, and a service could be enable to download pictures, and set them as wallpaper every 4 hours.

brew services start bing-wallpaper

AFAIK, there's no way to let user configure the service .plist with command brew, if you wanna change the download location or do other customizations. Modify the homebrew.mxcl.bing-wallpaper.plist directly after the service is added, then restart the service to make it take effect.

laggardkernel avatar Sep 10 '19 06:09 laggardkernel