I am doing a fresh install of my OS and realized how powerful brew is. I checked whether I could install Slicer with it and discovered that only the stable version is available:
brew cask install slicer
I thought it would be convenient to be able to install the nightly build, so I took the liberty to submit a PR to homebrew-versions. I hope you’re ok with that. If it’s accepted, one could install the official nightly version on macOS by doing:
brew cask install slicer-nightly
This is the comitted cask:
It would need to be updated often. I can do it for some time, but I guess the right thing would be that someone from the core set a periodic script to update it everyday. It needs just the version (like 4.7.0.26186,672116) and an URL as parameters.
I learnt about all this stuff yesterday. I think something like that would work (replacing slicer by slicer-nightly). My idea is, once my PR is accepted, I can try those lines, make the necessary modifications, and once it seems like it’s working I’ll confirm the procedure in this thread.
Btw, the script doesn’t need to manually downloaded. It can be installed using brew:
Thanks for the reminder. I have been busy upgrading the infrastructure to work with Qt5 and VTK8 and didn’t have a chance to look further into this.
To move forward, it would be ideal to share few scripts consolidating all valuable information shared here.
For example:
script 1: slicer-homebrew-setuptenv.sh # This would allow to install the required homebrew environment
script 2: slicer-homebrew-update.sh # This script allowing to download the latest package, repackage and publish the PR for the cask, etc …
Last, since we all agree moving forward with this make sense (Thanks @Fernando for your patience and help), could you add the content of these scripts as well as few additional info on this wiki page:
Alright! Those scripts would be run by you, right? I mean, we’re talking first about what you guys need to do to keep the cask updated and then we can publish the info needed by the users?