Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(503)

Side by Side Diff: build/mac/build_app_dmg

Issue 115474: Rename official builds to "Google Chrome" on disk and "Chrome" in the menubar... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | build/mac/dump_app_syms » ('j') | build/mac/dump_app_syms » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/bin/sh 1 #!/bin/sh
2 2
3 # Copyright (c) 2009 The Chromium Authors. All rights reserved. 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 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 6
7 # Normally you don't want to build a dmg out of a debug build. 7 # Normally you don't want to build a dmg out of a debug build.
8 if [ "${CONFIGURATION}" != "Release" ] ; then 8 if [ "${CONFIGURATION}" != "Release" ] ; then
9 echo "warning: building dmg in non-release mode" >&2 9 echo "warning: building dmg in non-release mode" >&2
10 fi 10 fi
11 11
12 # Make sure we got the branding passed to us 12 # Make sure we got the branding passed to us
13 if [ $# -ne 1 ]; then 13 if [ $# -ne 1 ]; then
14 echo "error: missing branding as an argument" >&2 14 echo "error: missing branding as an argument" >&2
15 exit 1 15 exit 1
16 fi 16 fi
17 17
18 # fail on anything from here out 18 # fail on anything from here out
19 set -e 19 set -e
20 20
21 TOP="${SRCROOT}/.." 21 TOP="${SRCROOT}/.."
22 PKG_DMG="${TOP}/build/mac/pkg-dmg" 22 PKG_DMG="${TOP}/build/mac/pkg-dmg"
23 23
24 APP_NAME=$1 24 BUILD_BRANDING=$1
25 if [ "${BUILD_BRANDING}" == "Chromium" ]; then
26 APP_NAME="Chromium"
27 DMG_NAME="Chromium.dmg"
28 elif [ "${BUILD_BRANDING}" == "Chrome" ]; then
29 APP_NAME="Google Chrome"
30 DMG_NAME="GoogleChrome.dmg"
31 else
32 echo "error: unknown branding: ${BUILD_BRANDING}" >&2
33 exit 1
34 fi
35
25 SRC_APP_PATH="${BUILT_PRODUCTS_DIR}/${APP_NAME}.app" 36 SRC_APP_PATH="${BUILT_PRODUCTS_DIR}/${APP_NAME}.app"
26 VOL_NAME="${APP_NAME}" 37 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}" 38 DST_DMG_PATH="${BUILT_PRODUCTS_DIR}/${DMG_NAME}"
30 39
31 # show things as we run them 40 # show things as we run them
32 set -x 41 set -x
33 42
34 # Call the real working 43 # Call the real working
35 "${PKG_DMG}" --source /var/empty \ 44 "${PKG_DMG}" --source /var/empty \
36 --target "${DST_DMG_PATH}" \ 45 --target "${DST_DMG_PATH}" \
37 --format UDBZ \ 46 --format UDBZ \
38 --volname "${VOL_NAME}" \ 47 --volname "${VOL_NAME}" \
39 --tempdir "${TEMP_DIR}" \ 48 --tempdir "${TEMP_DIR}" \
40 --copy "${SRC_APP_PATH}/:/${APP_NAME}.app/" 49 --copy "${SRC_APP_PATH}/:/${APP_NAME}.app/"
OLDNEW
« no previous file with comments | « no previous file | build/mac/dump_app_syms » ('j') | build/mac/dump_app_syms » ('J')

Powered by Google App Engine
This is Rietveld 408576698