How does one set a background image in an OSX .pkg?
Asked Answered
P

2

5

I am creating a .pkg installer for my OSX application and I am having trouble figuring out how to set the background image.

I am creating my installer in my build script like this:

pkgbuild --root $APP_FOLDER --identifier "com.company.product" $FINAL_PKG

This works great but I have not been able to find any information about setting the background image in the man pages. I have seen package installers that have custom background images, how does one set it?

EDIT:

Here is a screenshot of a package installer with a custom background:

enter image description here

Phylloquinone answered 10/7, 2013 at 16:56 Comment(3)
are you talking about your icns?Misfile
No as you are installing, some package installers have a custom background image instead of the normal pencil, ruler and paintbrush background that is the default. I have added a screenshot to my post.Phylloquinone
Oh yeah.... did you look at the command line parameters from productbuild ? Go to terminal and type in just 'productbuild"Misfile
M
3

Ah ha! There is a resources flag that goes along with productbuild. Here is a stackoverflow question addressing the resources: How do I build an OS X installer package with a custom background with productbuild?

It mentions --resources /path/Resources

and an en.lproj subdirectory, and an XML resources file. You can specify the background.jpg or modify an existing one.

Hope this points you in the right direction(s).

Misfile answered 10/7, 2013 at 18:1 Comment(0)
T
2

This was most likely done with a tool apple had for creating installers.

You might be able to find it if you search for it on the OS X developer site of Apple

EDIT:

See also

NOTE:

I don't think an installer is the best solution! Making your app in a way that frees you from an installer is not hard. License Agreement, Pre- and Post script functions can be coded in-app.

Tasse answered 10/7, 2013 at 17:6 Comment(1)
The only thing I have seen like this from Apple is PackageMaker but that seems to have been abandoned.Phylloquinone

© 2022 - 2024 — McMap. All rights reserved.