homebrew cask : updating an existing cask
A new version of owncloud is out, I will try today to push that new infomation to http://caskroom.io/
I will base things on this previous contribution
-
set-up variables
cd $(brew --prefix)/Library/Taps/caskroom/homebrew-cask github_user='meduz' project='owncloud' git remote -v
-
creating a new branch for his project
git branches git remote add $github_user https://github.com/$github_user/homebrew-cask git checkout $project
-
finding my information and feeding to homebrew
cd /tmp wget https://download.owncloud.com/desktop/stable/ownCloud-1.8.0.2139.pkg sha256sum ownCloud-1.8.0.2139.pkg sha256sum ownCloud-1.8.0.2139.pkg | pbcopy brew cask edit owncloud
-
testing with homebrew:
brew cask install $project brew cask audit $project --download
-
publishing results
git status git commit -am"upgrading owncloud" git push $github_user $project
-
confirm the pull request
open https://github.com/$github_user/homebrew-cask
-
come back to the
master
branchgit checkout master
in the meanwhile, the change has been merged and got approveded. Owncloud is updated!
-
moreover, I do not like the default pattern of ignored files and I edit it globally:
sudo vim /Applications/owncloud.app/Contents/Resources/sync-exclude.lst