diff options
author | mark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-13 20:14:52 +0000 |
---|---|---|
committer | mark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-13 20:14:52 +0000 |
commit | 4eeb018cc6f4b3a1d6715facaa3a3c54a22b4951 (patch) | |
tree | 6d37b0fdf811639f8657d74280609bf85d75ac10 /chrome/tools/build/mac/make_sign_sh | |
parent | f5c172084ebace23f2c639a4d08cb13a98a0d336 (diff) | |
download | chromium_src-4eeb018cc6f4b3a1d6715facaa3a3c54a22b4951.zip chromium_src-4eeb018cc6f4b3a1d6715facaa3a3c54a22b4951.tar.gz chromium_src-4eeb018cc6f4b3a1d6715facaa3a3c54a22b4951.tar.bz2 |
Put the Keystone installation script and codesign driver script next to the
.app bundle, and make them available to the packaging system. This ensures
that the packager uses the correct logic to sign a bundle, and places the
correct Keystone auto-update script into the package. Because things may
move around in the bundle and the proper codesign invocation may change
between versions, it is correct to store the codesign logic with the package
being signed. Similarly, because the correct way to perform an client-side
auto-update may change between versions, it is correct to store the
auto-update script with the code.
BUG=14610 (in support of unbreaking auto-update)
TEST=none
Review URL: http://codereview.chromium.org/261048
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@28871 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/tools/build/mac/make_sign_sh')
-rwxr-xr-x | chrome/tools/build/mac/make_sign_sh | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/chrome/tools/build/mac/make_sign_sh b/chrome/tools/build/mac/make_sign_sh new file mode 100755 index 0000000..115882c --- /dev/null +++ b/chrome/tools/build/mac/make_sign_sh @@ -0,0 +1,28 @@ +#!/bin/sh + +# Copyright (c) 2009 The Chromium Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +# This script creates sign.sh, the script that will be used to sign the +# application bundle and inner bundles. sign.sh is placed in the Packaging +# directory next to the .app bundle. The packaging system is expected to run +# sign.sh to sign everything. + +set -e + +if [ $# -ne 2 ] ; then + echo "usage: ${0} PACKAGING_DIR MAC_PRODUCT_NAME" >& 2 + exit 1 +fi + +PACKAGING_DIR="${1}" +MAC_PRODUCT_NAME="${2}" +SIGN_SH_IN_FILE="$(dirname "${0}")/sign.sh.in" +SIGN_SH_FILE="${PACKAGING_DIR}/sign.sh" + +mkdir -p "${PACKAGING_DIR}" +sed -e "s/@MAC_PRODUCT_NAME@/${MAC_PRODUCT_NAME}/g" \ + < "${SIGN_SH_IN_FILE}" \ + > "${SIGN_SH_FILE}" +chmod a+rx "${SIGN_SH_FILE}" |