如何在OSX .pkg中设置背景图像? [英] How does one set a background image in an OSX .pkg?
问题描述
我正在为我的OSX应用程序创建一个.pkg安装程序,但在弄清楚如何设置背景图像时遇到了麻烦.
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?
以下是具有自定义背景的软件包安装程序的屏幕截图:
Here is a screenshot of a package installer with a custom background:
推荐答案
啊哈! productbuild附带一个资源标志.这是一个解决资源的stackoverflow问题:
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?
它提到--resources/path/Resources
It mentions --resources /path/Resources
和一个en.lproj子目录,以及一个XML资源文件.您可以指定background.jpg或修改现有的background.jpg.
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).
这篇关于如何在OSX .pkg中设置背景图像?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!