diff options
Diffstat (limited to 'build/mac/build_app_dmg')
-rwxr-xr-x | build/mac/build_app_dmg | 20 |
1 files changed, 7 insertions, 13 deletions
diff --git a/build/mac/build_app_dmg b/build/mac/build_app_dmg index 2108959..9b6eb30 100755 --- a/build/mac/build_app_dmg +++ b/build/mac/build_app_dmg @@ -20,26 +20,20 @@ set -e TOP="${SRCROOT}/.." PKG_DMG="${TOP}/build/mac/pkg-dmg" +BRAND_SCRIPT="${TOP}/build/branding_value.sh" 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 + +# show things as we run them +set -x + +APP_NAME=$("${BRAND_SCRIPT}" "${BUILD_BRANDING}" PRODUCT_FULLNAME) +DMG_NAME=$(echo "${APP_NAME}" | sed "s/ //g") SRC_APP_PATH="${BUILT_PRODUCTS_DIR}/${APP_NAME}.app" VOL_NAME="${APP_NAME}" DST_DMG_PATH="${BUILT_PRODUCTS_DIR}/${DMG_NAME}" -# show things as we run them -set -x - # Call the real working "${PKG_DMG}" --source /var/empty \ --target "${DST_DMG_PATH}" \ |