Skip to content

Permissions errors Catalina running hdiutil, write to user home, and sudo #118

Answered by gromgit
sidney asked this question in Everyday usage
Discussion options

You must be logged in to vote

post_install runs after all the formula's files have been installed in /usr/local (hence the name). That's how it can run "for both source and bottle installs", and going by what you've written so far, it's probably not suitable for your purposes.

In fact, if your formula's sole purpose is to build a DMG, with no intention of installing anything under the Homebrew hierarchy, you're much better off just writing a simple shell script instead. The only use for Homebrew I can think of for your use case is the cask mechanism, but that only tells Homebrew how to manage the installation of your DMG. You'd still have to build the DMG yourself.

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
1 reply
@sidney
Comment options

Comment options

You must be logged in to vote
3 replies
@sidney
Comment options

@sidney
Comment options

@jonchang
Comment options

Answer selected by sidney
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants