diff options
author | mpcomplete@chromium.org <mpcomplete@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-12-03 23:03:41 +0000 |
---|---|---|
committer | mpcomplete@chromium.org <mpcomplete@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-12-03 23:03:41 +0000 |
commit | 9da4a5aeeb2efb12cd4707fdb5333ee9cc1419c6 (patch) | |
tree | a1a354aee9d957090c918cdce6fb00ab13ccc9a8 /gears/SConscript.installers | |
parent | e2d79d8783179376264e1d7ec77f42fcec4b6f3b (diff) | |
download | chromium_src-9da4a5aeeb2efb12cd4707fdb5333ee9cc1419c6.zip chromium_src-9da4a5aeeb2efb12cd4707fdb5333ee9cc1419c6.tar.gz chromium_src-9da4a5aeeb2efb12cd4707fdb5333ee9cc1419c6.tar.bz2 |
Added Keystone builder to gears-scons.
Review URL: http://codereview.chromium.org/10423
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6322 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gears/SConscript.installers')
-rw-r--r-- | gears/SConscript.installers | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/gears/SConscript.installers b/gears/SConscript.installers index c528985..e55dd6d 100644 --- a/gears/SConscript.installers +++ b/gears/SConscript.installers @@ -339,6 +339,36 @@ def SafariInstallerPackage(): return pkg safari_installer_package = SafariInstallerPackage() +def SafariKeystoneInstaller(): + if not os.path.exists(env.Dir('#/$PRIVATE_DIR').abspath): + print 'Skipping Safari Keystone installer. Required sources are not public.' + return [] + + env.Append(CREATE_DISK_IMAGE = + "/usr/bin/hdiutil create -ov -imagekey zlib-level=9 -fs HFS+" + " -format UDZO -volname '$FRIENDLY_NAME ${VERSION}'" + " -srcfolder '${INSTALLER_OUTDIR}/Safari/dmg/' -scrub" + " -nocrossdev '${SF_KEYSTONE_INSTALLER_DMG}'" + ) + + pkg = env.Iceberg(env.Dir('${SF_KEYSTONE_INSTALLER_MPKG}'), + ['$SF_OUTDIR/genfiles/keystone_installer.packproj']) + env.Depends(pkg, GetInputs('$SF_M4S')) + env.Depends(pkg, safari_installer_package) + + dirsrcs = [ + ('/', [pkg]), + ('/.keystone_install', + ['$PRIVATE_DIR/tools/osx/installer/keystone_install']), + ] + dmg = env.DirBuilder('$INSTALLER_OUTDIR/Safari/dmg', dirsrcs) + env.AddPostAction(dmg, 'chmod +x ${TARGET.base}/.keystone_install') + # hdiutil is crashy under leopard, so try twice. + env.AddPostAction(dmg, '$CREATE_DISK_IMAGE || $CREATE_DISK_IMAGE') + + return dmg +safari_keystone_installer = SafariKeystoneInstaller() + installers = [] if 'FF3' in env['VALID_BROWSERS']: installers += firefox_installer @@ -350,6 +380,7 @@ if 'SF' in env['VALID_BROWSERS']: safari_installer_plugin_bundle, safari_installer_package, safari_input_manager_bundle, + safari_keystone_installer, ] if env['OS'] == 'win32': installers += win32_installer |