woelper / oculante

A fast and simple image viewer / editor for many operating systems
https://github.com/woelper/oculante
MIT License
871 stars 40 forks source link

Add app to Homebrew casks/MacPorts package managers to handle autoupdates #93

Open eugenesvk opened 1 year ago

woelper commented 1 year ago

This is an interesting topic. Would you be able to help out with this? Are you aware oculante can auto-update through settings?

eugenesvk commented 1 year ago

I can help with Windows (see https://github.com/ScoopInstaller/Extras/issues/10003)

Don't know anything about Ports, and also unlikely can help with Brew since it doesn't support Catalina anymore, so might be a challenge to test, but might test it later, hopefully should be easier for binary installs...

Yes, I'm aware of auto-update, it's nice to have as well, but then it's not always the best thing for the first launch experience to be having to remember updating an app (especially when it's manual)

eugenesvk commented 1 year ago

Tried to add a cask (binary distributable) on Homebrew, but apparently casks on ARM must be signed and since your binary isn't it will not be accepted (doesn't pass the audit) You might want to add your own tap, this is the relevant cask formula that I created before I learned about the signing requirement https://github.com/eugenesvk/homebrew-cask/blob/oculante/Casks/oculante.rb

Also, not sure if the most annoying part — updating the tap version/sha on new releases — can be automated

eugenesvk commented 1 year ago

Good news — I've managed to find a way for you to set up an automated workflow to update the homebrew cask on every new tag released on this main repo (there is a github action to open a pull request to update the version and another action to automerge it, so hopefully you won't have to do anything once it's set up)

You'd need to complete the following two steps:

(for example, if I push a tag in that homebrew-bump repo, then the homebrew-oculante and cask repo is fully autoupdated with the version taken from that tag, including automerging the PR)

(or there could be an easier way to update version/sha in the template, haven't looked into it, but might check https://github.com/wez/wezterm/blob/main/ci/wezterm-homebrew-macos.rb.template and the CI jobs in that repo)

woelper commented 1 year ago

Thank you, this sounds amazing! I'll get on with that as soon as I fixed some of the issues I am working on.