Add conditional PGO support for Zen release builds in macOS mozconfig

This commit is contained in:
mr. M
2025-01-09 19:07:48 +01:00
parent 2b0c6c6f73
commit eb330dc484
3 changed files with 2 additions and 17 deletions

View File

@@ -31,8 +31,6 @@
# $ open ~/Nightly.app
#
shopt -s globstar
usage ()
{
echo "Usage: $0 "
@@ -114,7 +112,7 @@ echo "-------------------------------------------------------------------------"
set -x
# move Zen_Browser.provisionprofile to the Contents directory
cp Zen_Browser.provisionprofile "${BUNDLE}"/Contents/embedded.provisionprofile
#cp Zen_Browser.provisionprofile "${BUNDLE}"/Contents/embedded.provisionprofile
# Clear extended attributes which cause codesign to fail
xattr -cr "${BUNDLE}"
@@ -124,7 +122,6 @@ xattr -cr "${BUNDLE}"
codesign --force -o runtime --verbose --sign "$IDENTITY" \
"${BUNDLE}/Contents/Library/LaunchServices/org.mozilla.updater" \
"${BUNDLE}/Contents/MacOS/XUL" \
"${BUNDLE}"/Contents/embedded.provisionprofile \
"${BUNDLE}/Contents/MacOS/pingsender"
# Sign every ${BUNDLE}/Contents/MacOS/*.dylib
@@ -159,17 +156,6 @@ codesign --force -o runtime --verbose --sign "$IDENTITY" --deep \
# Validate
codesign -vvv --deep --strict "${BUNDLE}"
# Staple the ticket
xcrun notarytool submit "${BUNDLE}" \
--apple-id "${MACOS_APPLE_ACCOUNT_ID}" \
--team-id "${MACOS_APPLE_DEVELOPER_ID_TEAM_ID}" \
--password "${MACOS_APPLE_DEVELOPER_ID_PASSWORD}" \
--no-s3-acceleration \
--verbose \
--wait
xcrun stapler staple --verbose "${BUNDLE}" || exit 0
# Create a DMG
if [ ! -z "${OUTPUT_DMG_FILE}" ]; then
DISK_IMAGE_DIR=`mktemp -d`