I’ve written a ruby script that I am now looking at wrapping up in a preference pane for the purpose of configuring my ruby script. Now I was hoping that there would be a way for me to run some arbitrary commands when this preference pane gets installed in order to install necessary ruby gems etc, however I can’t seem to find any documentation on this sort of functionality anywhere.
Any ideas would be appreciated.
Cheers
Nick
You could just call a ruby script that performs any necessary configurations for you. If you need it to install gems, you’ll probably need to run it with elevated privileges. This is how I’ve done it in the past: