Add ZEN_GA_DISABLE_PGO environment variable to disable PGO and update codesign script for verbose output

This commit is contained in:
mr. M
2025-01-08 17:54:50 +01:00
parent c003a2594b
commit e9936865d9
5 changed files with 16 additions and 5 deletions

View File

@@ -135,6 +135,7 @@ jobs:
- name: Package
env:
SURFER_COMPAT: ${{ matrix.arch }}
ZEN_GA_DISABLE_PGO: true
run: |
export SURFER_PLATFORM="linux"
export ZEN_RELEASE=1

View File

@@ -134,6 +134,7 @@ jobs:
- name: Package
env:
SURFER_COMPAT: ${{ matrix.arch }}
ZEN_GA_DISABLE_PGO: true
run: |
export SURFER_PLATFORM="darwin"
export MACOS_APPLE_DEVELOPER_ID="${{ secrets.macOS_AppleDeveloperId }}"
@@ -158,6 +159,7 @@ jobs:
--apple-id "${{ secrets.macOS_AppleAccountId }}" \
--team-id "${{ secrets.macOS_AppleDeveloperIdTeamId }}" \
--password "${{ secrets.macOS_AppleDeveloperIdPassword }}" \
--verbose \
--wait
xcrun stapler staple "zen.macos-${{ matrix.arch }}.dmg"

View File

@@ -154,7 +154,7 @@ codesign -vvv --deep --strict "${BUNDLE}"
cp Zen_Browser.provisionprofile "${BUNDLE}"/Contents/embedded.provisionprofile
# Staple the ticket
xcrun stapler staple "${BUNDLE}" --verbose || exit 0
xcrun stapler staple --verbose "${BUNDLE}" || exit 0
# Create a DMG
if [ ! -z "${OUTPUT_DMG_FILE}" ]; then

View File

@@ -12,8 +12,12 @@ if test "$SURFER_COMPAT" = "x86_64"; then
ac_add_options --enable-eme=widevine
# Enable Profile Guided Optimization
export MOZ_PGO=1
ac_add_options MOZ_PGO=1
if test "$ZEN_GA_DISABLE_PGO"; then
export ZEN_DUMMY=1
else
export MOZ_PGO=1
ac_add_options MOZ_PGO=1
fi
# Optimization flags for SURFER_COMPAT
ac_add_options --enable-optimize="-O3 -w -ftree-vectorize -Qvec -mfpmath=sse -mprfchw -msse3 -mcx16 -msahf"

View File

@@ -7,8 +7,12 @@ export MOZ_MACBUNDLE_ID=${appId}
export MOZ_MACBUNDLE_NAME="Zen Browser.app"
if test "$ZEN_RELEASE"; then
export MOZ_PGO=1
ac_add_options MOZ_PGO=1
if test "$ZEN_GA_DISABLE_PGO"; then
export ZEN_DUMMY=1
else
export MOZ_PGO=1
ac_add_options MOZ_PGO=1
fi
fi
if test "$SURFER_COMPAT" = "x86_64"; then