-
Notifications
You must be signed in to change notification settings - Fork 38
Add option to set the path to custom preinstall and postinstall scripts #3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Thanks! A few comments: Could you also ensure that any files named It would be useful if we clarify in the usage that --scripts is just literally passing the option through to the pkgbuild command. This would at least be a hint to users to look at pkgbuild for more documentation. Also, since adding |
Thanks for your feedback. I made the changes according to your comments. As I've never write Ruby before today, there might be some better ways to do it but it seems to work fine. |
Also when installing software with |
This is true - but in my opinion the value of installer packages is that they're for installing software to the system. I wrote brew-pkg to be able to generate packages that I deploy to other systems, and as far as I'm concerned those packges should install files owned by root. It's usually a bad sign if an installer package installs something to /usr/local owned by a UID like 501 - 501 may not necessarily even exist on a system, but we can count on the fact that root:wheel or :admin will. |
Reverts back to the previous default behavior and add custom ownership as an option
You're right about that. And it is better if brew-pkg stays consistent with the previous behavior (implicitly |
Thanks! Just released 0.1.5 to incorporate these. |
Nice ! Glad to contribute =) |
Hi timsutton,
pkgbuild
has a useful option--scripts
to add some pre and post install scripts.Thus it can be used to customize the generated packages. I made few changes to make it work.