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

@@ -36,7 +36,5 @@
<key>com.apple.application-identifier</key>
<string>H36NPCN86W.app.zen-browser.zen</string>
<!-- For platform passkey (webauthn) support -->
<key>com.apple.developer.web-browser.public-key-credential</key><true/>
</dict>
</plist>

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`

View File

@@ -6,6 +6,7 @@ ac_add_options --enable-eme=widevine
export MOZ_MACBUNDLE_ID=${appId}
export MOZ_MACBUNDLE_NAME="Zen Browser.app"
if test "$SURFER_COMPAT" = "x86_64"; then
ac_add_options --target=x86_64-apple-darwin