Building inkscape beta with homebrew

1

I was wondering if I could use homebrew to get inkscape's beta. I know I can use it to get their current version with brew cask install inkscape but is there any way to get their beta?

Thanks in advance

neanderslob

Posted 2019-10-16T16:27:41.147

Reputation: 623

Answers

1

You can run brew cask edit inkscape to edit the formula that installs Inkscape.

For example, the latest version is found under:

http://alpha.inkscape.org/prereleases/Inkscape-latest.dmg

So, replace the contents of the file with:

cask 'inkscape' do
  version :latest
  sha256 :no_check

  url "http://alpha.inkscape.org/prereleases/Inkscape-latest.dmg"
  name 'Inkscape'
  homepage 'https://inkscape.org/'

  depends_on x11: true

  app 'Inkscape.app'
  binary "#{appdir}/Inkscape.app/Contents/Resources/bin/inkscape"

  zap trash: '~/.inkscape-etc'
end

Save it and run brew cask install inkscape.

The specific change needed for "latest" versions is the :latest keyword. Also, you are skipping checksum verification with :no_check. Hence, be careful about what you are downloading.

slhck

Posted 2019-10-16T16:27:41.147

Reputation: 182 472

Note that this is untested as I don't have a Mac to test with now. Please verify and let me know. – slhck – 2019-10-16T16:49:02.827

This answer saved my day! – Jinhua Wang – 2019-11-14T11:39:06.230