Changes

Jump to: navigation, search

ReleaseEngineering/PuppetAgain/HowTo/Build DMGs

943 bytes added, 15:30, 3 September 2014
Building A Package
For newer scripts, you should just be able to download the script on a system with the appropriate version of OS X and of XCode, and run it. Older scripts will require an SRPM be unpacked first.
== Where do I Run It? == At the moment, the answer to this question has been lost to time. Check bugs, and ask people. If there are existing DMGs for each OS X version, then most likely each was built on that OS X version. In general, we have one version of Xcode that we know how to install for each version of OS X (defined in puppet), so that's the Xcode that was used. Add something like this to the script to eliminate ambiguity in the future: <pre># ensure the same build environment (you can change this if necessary, just test carefully)if [ ! -x /tools/packagemaker/bin/packagemaker ]; then echo "install the packagemaker package (also in puppetagain)" exit 1fi if [ "$(sw_vers -productVersion)" != "$osx_vers" ]; then echo "Build this on a $osx_vers host" exit 1fi if [ "$(xcodebuild -version | grep Xcode)" != "Xcode $xcode_vers" ]; then echo "Build this with Xcode $xcode_vers" exit 1fi</pre> == Unpacking an SRPM ===
In a fresh new directory, get a copy of the corresponding src.rpm from http://puppetagain.pub.build.mozilla.org/data, and run
Canmove, confirm
1,394
edits

Navigation menu