Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

OSX installer Package plugin [closed]

I am trying to package an application I have been working on using OSX. I have the package created and I can do some basic (check system values etc) checks.

What I now want to do is to gather end user data during the install so I can create a custom config file.

I understand I must use installer plugins to do this but I cannot find any useful information to do this.

Can people please share resources, link or useful tips to help me do this.

like image 449
Matt Seymour Avatar asked Mar 12 '13 10:03

Matt Seymour


1 Answers

(Super) late answer, but am currently doing this. I'm using packages. Its a program which will build an installer for you.

What you do is supply it your.app and an installer plugin, and off you go. (You can create installer plugins in Xcode when it asks you what type of project you want to work on).

Regarding problem you are solving specifically, my solution was to get the input configs from the user from the plugin I wrote. The plugin would then write these configs to a file in a temp location. I then modified my app to look for these configs and read them from there.

Note: your plugin will not run with admin privileges (even if you ticked the box in the for this in the packages app). If you need to have admin privileges, consider adding a post-install script in packages (and make sure you enable "Require admin password for installation" in the "settings" tab)

like image 60
OrangePot Avatar answered Sep 20 '22 09:09

OrangePot