Explicitly disabling viewport when running layout tests
[chromium-blink-merge.git] / chrome / tools / build / mac / build_app_dmg
blob1ccfcbd7ec1eff376261447fb2dc8555b19894a9
1 #!/bin/sh
3 # Copyright (c) 2012 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.
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
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
18 # fail on anything from here out
19 set -e
21 TOP="${SRCROOT}/.."
22 PKG_DMG="${SRCROOT}/installer/mac/pkg-dmg"
23 BRAND_SCRIPT="${TOP}/build/branding_value.sh"
25 BUILD_BRANDING=$1
27 APP_NAME=$("${BRAND_SCRIPT}" "${BUILD_BRANDING}" PRODUCT_FULLNAME)
28 DMG_NAME=$(echo "${APP_NAME}" | sed "s/ //g")
30 SRC_APP_PATH="${BUILT_PRODUCTS_DIR}/${APP_NAME}.app"
31 VOL_NAME="${APP_NAME}"
32 DST_DMG_PATH="${BUILT_PRODUCTS_DIR}/${DMG_NAME}.dmg"
34 # Call the real working
35 "${PKG_DMG}" --source /var/empty \
36 --target "${DST_DMG_PATH}" \
37 --format UDBZ \
38 --verbosity 0 \
39 --volname "${VOL_NAME}" \
40 --tempdir "${TEMP_DIR}" \
41 --copy "${SRC_APP_PATH}/:/${APP_NAME}.app/"