Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

AppleMacFinder

macrumors 6502a
Original poster
Dec 7, 2009
796
152
Already tried many ways: pkgbuild, productbuild, PackageMaker, Packages application...

The structure of the flat package that I want to build:

Code:
[COLOR="Green"]Distribution[/COLOR] - xml script
[COLOR="Red"]MacBookPro2011EFIUpdate.pkg[/COLOR] - flat package
[COLOR="Blue"]Resources[/COLOR] - resources folder, contains language localizations

Flat package information:
Code:
[COLOR="DarkOrchid"]id[/COLOR]="com.apple.pkg.MacBookPro2011EFIUpdate" [COLOR="DarkOrchid"]version[/COLOR]="2.7.0.0.1.1330468277"

For example, my failure with productbuild:

Code:
productbuild error: Cannot copy package "MacBookPro2011EFIUpdate.pkg" into product
(Bundle-style package "MacBookPro2011EFIUpdate.pkg" is not supported.)

Please, try to build the installer package from these files: Link
And, if you succeed, please tell how you did that!
 

ccamelot

macrumors member
Feb 21, 2010
33
0
Poland
Here it is

Hi,

instead of bundled package, you need a flat package with your component in it. Just put this .scap file in some folder (say "Parts" folder) then turn it into flat PKG file using command:
Code:
pkgbuild --root ./Parts --identifier com.whatever.something --install-location /System/Library/CoreServices/Firmware\ Updates/MacBookProEFIUpdate-2.7/ MacBookPro2011EFIUpdate.pkg
This will produce flat PKG file you'll need for the next command:
Code:
productbuild --distribution Distribution --resources Resources Installer.pkg
This command should package all elements into new, flat PKG file named "Installer.pkg". "Distribution" is of course a name of your file with settings for the installer and "Resources" is a directory with your resources.
At the end you can sign it with your Developer ID Installer, using productsign command and you're set!
Hope it helps!
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.