OLD | NEW |
(Empty) | |
| 1 #!/bin/sh |
| 2 |
| 3 # Copyright (c) 2009 The Chromium Authors. All rights reserved. |
| 4 # Use of this source code is governed by a BSD-style license that can be |
| 5 # found in the LICENSE file. |
| 6 |
| 7 # Normally you don't want to build a dmg out of a debug build. |
| 8 if [ "${CONFIGURATION}" != "Release" ] ; then |
| 9 echo "warning: building dmg in non-release mode" >&2 |
| 10 fi |
| 11 |
| 12 # Make sure we got the branding passed to us |
| 13 if [ $# -ne 1 ]; then |
| 14 echo "error: missing branding as an argument" >&2 |
| 15 exit 1 |
| 16 fi |
| 17 |
| 18 # fail on anything from here out |
| 19 set -ex |
| 20 |
| 21 TOP="${SRCROOT}/.." |
| 22 PKG_DMG="${TOP}/build/mac/pkg-dmg" |
| 23 |
| 24 APP_NAME=$1 |
| 25 SRC_APP_PATH="${BUILT_PRODUCTS_DIR}/${APP_NAME}.app" |
| 26 VOL_NAME="${APP_NAME}" |
| 27 # Do we want a svn version in the DMG name? |
| 28 DMG_NAME="${APP_NAME}.dmg" |
| 29 DST_DMG_PATH="${BUILT_PRODUCTS_DIR}/${DMG_NAME}" |
| 30 |
| 31 # Call the real working |
| 32 "${PKG_DMG}" --source /var/empty \ |
| 33 --target "${DST_DMG_PATH}" \ |
| 34 --format UDBZ \ |
| 35 --volname "${VOL_NAME}" \ |
| 36 --tempdir "${TEMP_DIR}" \ |
| 37 --copy "${SRC_APP_PATH}/:/${APP_NAME}.app/" |
OLD | NEW |