diff options
author | thomasvl@chromium.org <thomasvl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-18 21:10:55 +0000 |
---|---|---|
committer | thomasvl@chromium.org <thomasvl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-18 21:10:55 +0000 |
commit | 34a4f485631873f6b139d104e0d93f582e2e1fe4 (patch) | |
tree | d83a386e5c81e7c6a2da9cc4ff192f9f4185f1f0 /build/mac | |
parent | d86153fdd4118874035bd9ba69d9d405414ddd53 (diff) | |
download | chromium_src-34a4f485631873f6b139d104e0d93f582e2e1fe4.zip chromium_src-34a4f485631873f6b139d104e0d93f582e2e1fe4.tar.gz chromium_src-34a4f485631873f6b139d104e0d93f582e2e1fe4.tar.bz2 |
Rename official builds to "Google Chrome" on disk and "Chrome" in the menubar.
BUG=11826
Review URL: http://codereview.chromium.org/115474
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16313 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build/mac')
-rwxr-xr-x | build/mac/build_app_dmg | 15 | ||||
-rwxr-xr-x | build/mac/dump_app_syms | 9 | ||||
-rwxr-xr-x | build/mac/tweak_app_infoplist | 12 |
3 files changed, 30 insertions, 6 deletions
diff --git a/build/mac/build_app_dmg b/build/mac/build_app_dmg index ec12418..2108959 100755 --- a/build/mac/build_app_dmg +++ b/build/mac/build_app_dmg @@ -21,11 +21,20 @@ set -e TOP="${SRCROOT}/.." PKG_DMG="${TOP}/build/mac/pkg-dmg" -APP_NAME=$1 +BUILD_BRANDING=$1 +if [ "${BUILD_BRANDING}" == "Chromium" ]; then + APP_NAME="Chromium" + DMG_NAME="Chromium.dmg" +elif [ "${BUILD_BRANDING}" == "Chrome" ]; then + APP_NAME="Google Chrome" + DMG_NAME="GoogleChrome.dmg" +else + echo "error: unknown branding: ${BUILD_BRANDING}" >&2 + exit 1 +fi + SRC_APP_PATH="${BUILT_PRODUCTS_DIR}/${APP_NAME}.app" VOL_NAME="${APP_NAME}" -# Do we want a svn version in the DMG name? -DMG_NAME="${APP_NAME}.dmg" DST_DMG_PATH="${BUILT_PRODUCTS_DIR}/${DMG_NAME}" # show things as we run them diff --git a/build/mac/dump_app_syms b/build/mac/dump_app_syms index a1e497c..6b2a8a7 100755 --- a/build/mac/dump_app_syms +++ b/build/mac/dump_app_syms @@ -19,10 +19,17 @@ fi TOP="${SRCROOT}/.." BUILD_BRANDING=$1 +if [ "${BUILD_BRANDING}" == "Chromium" ]; then + SRC_APP_NAME="Chromium" +elif [ "${BUILD_BRANDING}" == "Chrome" ]; then + SRC_APP_NAME="Google Chrome" +else + echo "error: unknown branding: ${BUILD_BRANDING}" >&2 + exit 1 +fi . "${TOP}/chrome/VERSION" -SRC_APP_NAME="${BUILD_BRANDING}" BREAKPAD_DUMP_SYMS="${BUILT_PRODUCTS_DIR}/dump_syms" BREAKPAD_PRODUCT_ID="${BUILD_BRANDING}_Mac" FULL_VERSION="${MAJOR}.${MINOR}.${BUILD}.${PATCH}" diff --git a/build/mac/tweak_app_infoplist b/build/mac/tweak_app_infoplist index f8a062d..23c3984 100755 --- a/build/mac/tweak_app_infoplist +++ b/build/mac/tweak_app_infoplist @@ -54,7 +54,15 @@ fi TOP="${SRCROOT}/.." BUILD_BRANDING=$1 -SRC_APP_PATH="${BUILT_PRODUCTS_DIR}/${BUILD_BRANDING}.app" +if [ "${BUILD_BRANDING}" == "Chromium" ]; then + APP_NAME="Chromium" +elif [ "${BUILD_BRANDING}" == "Chrome" ]; then + APP_NAME="Google Chrome" +else + echo "error: unknown branding: ${BUILD_BRANDING}" >&2 + exit 1 +fi +SRC_APP_PATH="${BUILT_PRODUCTS_DIR}/${APP_NAME}.app" set -x @@ -85,7 +93,7 @@ COPYRIGHT_STRING=$(sed -n -e 's/^COPYRIGHT=\(.*\)$/\1/p' "${BRANDING_FILE}") COPYRIGHT_STRING=$(echo "${COPYRIGHT_STRING}" | sed -e $'s/([cC])/\302\251/g') # Build the full copyright string -LONG_COPYRIGHT="${BUILD_BRANDING} ${FULL_VERSION}, ${COPYRIGHT_STRING}" +LONG_COPYRIGHT="${APP_NAME} ${FULL_VERSION}, ${COPYRIGHT_STRING}" # I really hate how "defaults" doesn't take a real pathname but instead insists # on appending ".plist" to everything. |