Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread Display Modes
Old Nov 18, 2012, 09:05 AM   #1
macrumors 6502a
AppleMacFinder's Avatar
Join Date: Dec 2009
How to build a Mac OS X Installer Package from these files?

Already tried many ways: pkgbuild, productbuild, PackageMaker, Packages application...

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

Distribution - xml script
MacBookPro2011EFIUpdate.pkg - flat package
Resources - resources folder, contains language localizations
Flat package information:
id="" version=""
For example, my failure with productbuild:

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!
AppleMacFinder is offline   1 Reply With Quote
Old Nov 18, 2012, 02:06 PM   #2
macrumors member
Join Date: Feb 2010
Here it is


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:
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:
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!
ccamelot is offline   1 Reply With Quote

MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

osx, package, packagemaker, pkg-file, xcode

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -5. The time now is 04:35 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013,, LLC