mirror of
https://github.com/zen-browser/desktop.git
synced 2026-08-28 09:21:32 +00:00
Add conditional PGO support for Zen release builds in macOS mozconfig
This commit is contained in:
@@ -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`
|
||||
|
||||
Reference in New Issue
Block a user