Open rgov opened 6 years ago
Thanks a lot @rgov !
I will try it out when I/if I have some time. I am excited, as this could become a very easy way to deploy MapMap on macOS computers.
How can I simply run this recipe from the command line with brew?
First, you'll need to install Homebrew. Instructions here: https://brew.sh
Paste the content above into a file at /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/mapmap.rb
.
Then you can just run brew install mapmap
and the rest is automatic.
If it works for you, then you can submit it to the homebrew-core project. After the Homebrew team accepts the formula code, then everyone with Homebrew can install the package with the brew install
command.
In the future, it might be nice to make it a .app distribution again, and to use Homebrew to install dependencies inside the .app bundle. But I'm not sure how to do it.
I'll update the code above to add some recommended packages as well.
Great! Thank you.
Perhaps we can write a brew cask
formula for the .app as well in the future.
It works!
It should be easy to create a pull request for https://github.com/Homebrew/homebrew-core
I'll wait for the next bugfix release, though, because we have a critical fix in. See #435
I've put it here for now. https://github.com/mapmapteam/brew-mapmap
I might upload the packaging for the upcoming 0.6.2 - that contains bugfixes - to brew.
We need to change the mapmap.pro file so that no change and replace is needed.
Depends on #441
+1
I have written a Homebrew formula that builds MapMap on macOS. The formula lists all the dependencies, which makes it really to install---just
brew install mapmap
and the rest is automatic. Note though that it does not install it as an .app bundle, and you have to runMapMap
from the command line.Ordinarily, I would submit this to the homebrew-core project, and not here, but I find it frustrating to contribute to their project, and they usually reject submissions for random reasons. If you wish to submit to Homebrew, please be my guest.