From a8eff76dd09b23f3ec0b7e2f22c5e99c803fa3ab Mon Sep 17 00:00:00 2001 From: "mr. m" <91018726+mr-cheff@users.noreply.github.com> Date: Mon, 23 Dec 2024 07:49:36 +0000 Subject: [PATCH] Update dependencies and optimize build configurations for Linux and Windows --- .github/workflows/build.yml | 71 +++++++------------ .github/workflows/linux-release-build.yml | 18 ++--- .github/workflows/windows-profile-build.yml | 14 ++-- .github/workflows/windows-release-build.yml | 30 ++++---- README.md | 8 --- build/winsign/sign.ps1 | 38 ++++------ configs/linux/mozconfig | 17 ----- configs/windows/mozconfig | 12 ---- .../io.github.zen_browser.zen.yml.template | 2 +- package.json | 2 +- pnpm-lock.yaml | 10 +-- surfer.json | 2 - 12 files changed, 77 insertions(+), 147 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 48865e5a6..2d2088a22 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -322,13 +322,13 @@ jobs: release-branch: ${{ inputs.update_branch }} appimage: - name: AppImage build - Linux ${{ matrix.arch == 'x86_64' && 'generic' || matrix.arch == 'x86_64-v3' && 'specific' || matrix.arch == 'aarch64' && 'aarch64' }} + name: AppImage build - Linux ${{ matrix.arch }} permissions: contents: write runs-on: ubuntu-latest strategy: matrix: - arch: [x86_64, x86_64-v3, aarch64] + arch: [x86_64, aarch64] needs: [linux] steps: - name: Checkout repository @@ -351,7 +351,7 @@ jobs: - name: Download Linux build uses: actions/download-artifact@v4 with: - name: zen.linux-${{ matrix.arch == 'x86_64' && 'generic' || matrix.arch == 'x86_64-v3' && 'specific' || matrix.arch == 'aarch64' && 'aarch64' }}.tar.bz2 + name: zen.linux-${{ matrix.arch }}.tar.bz2 - name: Execute AppImage build run: | @@ -375,9 +375,9 @@ jobs: ls -al find . ls -al "$APPDIR" - ARCH=${{ matrix.arch == 'aarch64' && 'aarch64' || 'x86_64' }} ./appimagetool-x86_64.AppImage --comp zstd --mksquashfs-opt -Xcompression-level --mksquashfs-opt 10 \ - -u "gh-releases-zsync|$GITHUB_REPOSITORY_OWNER|desktop|latest|zen-${{ matrix.arch == 'x86_64' && 'generic' || matrix.arch == 'x86_64-v3' && 'specific' || matrix.arch == 'aarch64' && 'aarch64' }}.AppImage.zsync" \ - "$APPDIR" zen-${{ matrix.arch == 'x86_64' && 'generic' || matrix.arch == 'x86_64-v3' && 'specific' || matrix.arch == 'aarch64' && 'aarch64' }}.AppImage + ARCH=${{ matrix.arch }} ./appimagetool-x86_64.AppImage --comp zstd --mksquashfs-opt -Xcompression-level --mksquashfs-opt 10 \ + -u "gh-releases-zsync|$GITHUB_REPOSITORY_OWNER|desktop|latest|zen-${{ matrix.arch }}.AppImage.zsync" \ + "$APPDIR" zen-${{ matrix.arch }}.AppImage mkdir dist mv zen*AppImage* dist/. @@ -385,15 +385,15 @@ jobs: uses: actions/upload-artifact@v4 with: retention-days: 5 - name: zen-${{ matrix.arch == 'x86_64' && 'generic' || matrix.arch == 'x86_64-v3' && 'specific' || matrix.arch == 'aarch64' && 'aarch64' }}.AppImage - path: ./dist/zen-${{ matrix.arch == 'x86_64' && 'generic' || matrix.arch == 'x86_64-v3' && 'specific' || matrix.arch == 'aarch64' && 'aarch64' }}.AppImage + name: zen-${{ matrix.arch }}.AppImage + path: ./dist/zen-${{ matrix.arch }}.AppImage - name: Upload artifact (ZSync) uses: actions/upload-artifact@v4 with: retention-days: 5 - name: zen-${{ matrix.arch == 'x86_64' && 'generic' || matrix.arch == 'x86_64-v3' && 'specific' || matrix.arch == 'aarch64' && 'aarch64' }}.AppImage.zsync - path: ./dist/zen-${{ matrix.arch == 'x86_64' && 'generic' || matrix.arch == 'x86_64-v3' && 'specific' || matrix.arch == 'aarch64' && 'aarch64' }}.AppImage.zsync + name: zen-${{ matrix.arch }}.AppImage.zsync + path: ./dist/zen-${{ matrix.arch }}.AppImage.zsync release: if: ${{ inputs.create_release || inputs.update_branch == 'twilight' }} @@ -438,17 +438,14 @@ jobs: run: | cd updates-server mkdir -p updates - cp -a ../linux_update_manifest_generic/. updates/ - cp -a ../linux_update_manifest_specific/. updates/ + cp -a ../linux_update_manifest_x86_64/. updates/ cp -a ../linux_update_manifest_aarch64/. updates/ if [[ $RELEASE_BRANCH == 'beta' ]]; then - cp -a ../.github/workflows/object/windows-x64-signed-generic/update_manifest/. updates/ - cp -a ../.github/workflows/object/windows-x64-signed-specific/update_manifest/. updates/ + cp -a ../.github/workflows/object/windows-x64-signed-x86_64/update_manifest/. updates/ cp -a ../.github/workflows/object/windows-x64-signed-arm64/update_manifest/. updates/ else - cp -a ../windows_update_manifest_generic/. updates/ - cp -a ../windows_update_manifest_specific/. updates/ + cp -a ../windows_update_manifest_x86_64/. updates/ cp -a ../windows_update_manifest_arm64/. updates/ fi @@ -470,28 +467,21 @@ jobs: with: files: | zen.source.tar.gz - zen.linux-generic.tar.bz2 - zen.linux-specific.tar.bz2 + zen.linux-x86_64.tar.bz2 zen.linux-aarch64.tar.bz2 - zen-generic.AppImage - zen-generic.AppImage.zsync - zen-specific.AppImage - zen-specific.AppImage.zsync + zen-x86_64.AppImage + zen-x86_64.AppImage.zsync zen-aarch64.AppImage zen-aarch64.AppImage.zsync - zen.win-generic.zip - zen.win-specific.zip + zen.win-x86_64.zip zen.win-arm64.zip linux.mar - linux-generic.mar linux-aarch64.mar - windows-generic.mar windows.mar windows-arm64.mar macos-x86_64.mar macos-aarch64.mar zen.installer.exe - zen.installer-generic.exe zen.installer-arm64.exe zen.macos-x86_64.dmg zen.macos-aarch64.dmg @@ -513,28 +503,21 @@ jobs: title: 'Beta build - ${{ needs.build-data.outputs.version }} (${{ needs.build-data.outputs.build_date }})' files: | zen.source.tar.gz - zen.linux-generic.tar.bz2 - zen.linux-specific.tar.bz2 + zen.linux-x86_64.tar.bz2 zen.linux-aarch64.tar.bz2 - zen-generic.AppImage - zen-generic.AppImage.zsync - zen-specific.AppImage - zen-specific.AppImage.zsync + zen-x86_64.AppImage + zen-x86_64.AppImage.zsync zen-aarch64.AppImage zen-aarch64.AppImage.zsync - .github/workflows/object/windows-x64-signed-generic/zen.win-generic.zip - .github/workflows/object/windows-x64-signed-specific/zen.win-specific.zip + .github/workflows/object/windows-x64-signed-x86_64/zen.win-x86_64.zip .github/workflows/object/windows-x64-signed-arm64/zen.win-arm64.zip linux.mar - linux-generic.mar linux-aarch64.mar - .github/workflows/object/windows-x64-signed-generic/windows-generic.mar - .github/workflows/object/windows-x64-signed-specific/windows.mar + .github/workflows/object/windows-x64-signed-x86_64/windows.mar .github/workflows/object/windows-x64-signed-arm64/windows-arm64.mar macos-x86_64.mar macos-aarch64.mar - .github/workflows/object/windows-x64-signed-specific/zen.installer.exe - .github/workflows/object/windows-x64-signed-generic/zen.installer-generic.exe + .github/workflows/object/windows-x64-signed-x86_64/zen.installer.exe .github/workflows/object/windows-x64-signed-arm64/zen.installer-arm64.exe zen.macos-x86_64.dmg zen.macos-aarch64.dmg @@ -612,10 +595,10 @@ jobs: repository: flathub/io.github.zen_browser.zen token: ${{ secrets.DEPLOY_KEY }} - - name: Download Linux generic build + - name: Download Linux x86_64 build uses: actions/download-artifact@v4 with: - name: zen.linux-generic.tar.bz2 + name: zen.linux-x86_64.tar.bz2 - name: Update repository uses: actions/checkout@v4 @@ -637,7 +620,7 @@ jobs: python3 ./zen-browser/scripts/prepare-flatpak-release.py \ --flatpak-archive archive.tar \ --version ${{ needs.build-data.outputs.version }} \ - --linux-archive zen.linux-generic.tar.bz2 \ + --linux-archive zen.linux-x86_64.tar.bz2 \ --output io.github.zen_browser.zen.yml \ --template-root ./zen-browser/flatpak @@ -650,7 +633,7 @@ jobs: run: | rm -rf zen-browser rm -rf archive.tar - rm -rf zen.linux-generic.tar.bz2 + rm -rf zen.linux-x86_64.tar.bz2 - name: Upload Flatpak manifest uses: actions/upload-artifact@v4 diff --git a/.github/workflows/linux-release-build.yml b/.github/workflows/linux-release-build.yml index 3485ddeca..5b6a5467d 100644 --- a/.github/workflows/linux-release-build.yml +++ b/.github/workflows/linux-release-build.yml @@ -20,8 +20,8 @@ jobs: strategy: fail-fast: false matrix: - arch: [x86_64, x86_64-v3, aarch64] - name: Build Linux - ${{ matrix.arch == 'x86_64' && 'Generic' || matrix.arch == 'x86_64-v3' && 'Specific' || matrix.arch == 'aarch64' && 'aarch64' }} + arch: [x86_64, aarch64] + name: Build Linux - ${{ matrix.arch }} steps: - name: Free Disk Space (Ubuntu) @@ -147,26 +147,26 @@ jobs: - name: Rename artifacts run: | - mv dist/zen-*.tar.bz2 "zen.linux-${{ matrix.arch == 'x86_64' && 'generic' || matrix.arch == 'x86_64-v3' && 'specific' || matrix.arch == 'aarch64' && 'aarch64' }}.tar.bz2" - mv dist/output.mar linux${{ matrix.arch == 'x86_64' && '-generic' || matrix.arch == 'aarch64' && '-aarch64' || '' }}.mar + mv dist/zen-*.tar.bz2 "zen.linux-${{ matrix.arch }}.tar.bz2" + mv dist/output.mar linux${{ matrix.arch == 'aarch64' && '-aarch64' || '' }}.mar - name: Upload build artifact (binary) uses: actions/upload-artifact@v4 with: retention-days: 5 - name: zen.linux-${{ matrix.arch == 'x86_64' && 'generic' || matrix.arch == 'x86_64-v3' && 'specific' || matrix.arch == 'aarch64' && 'aarch64' }}.tar.bz2 - path: ./zen.linux-${{ matrix.arch == 'x86_64' && 'generic' || matrix.arch == 'x86_64-v3' && 'specific' || matrix.arch == 'aarch64' && 'aarch64' }}.tar.bz2 + name: zen.linux-${{ matrix.arch }}.tar.bz2 + path: ./zen.linux-${{ matrix.arch }}.tar.bz2 - name: Upload build artifact (.mar) uses: actions/upload-artifact@v4 with: retention-days: 5 - name: linux${{ matrix.arch == 'x86_64' && '-generic' || matrix.arch == 'aarch64' && '-aarch64' || '' }}.mar - path: ./linux${{ matrix.arch == 'x86_64' && '-generic' || matrix.arch == 'aarch64' && '-aarch64' || '' }}.mar + name: linux${{ matrix.arch == 'aarch64' && '-aarch64' || '' }}.mar + path: ./linux${{ matrix.arch == 'aarch64' && '-aarch64' || '' }}.mar - name: Upload build artifact (update manifests) uses: actions/upload-artifact@v4 with: retention-days: 5 - name: linux_update_manifest_${{ matrix.arch == 'x86_64' && 'generic' || matrix.arch == 'x86_64-v3' && 'specific' || matrix.arch == 'aarch64' && 'aarch64' }} + name: linux_update_manifest_${{ matrix.arch }} path: ./dist/update diff --git a/.github/workflows/windows-profile-build.yml b/.github/workflows/windows-profile-build.yml index a83b8931d..d042936e4 100644 --- a/.github/workflows/windows-profile-build.yml +++ b/.github/workflows/windows-profile-build.yml @@ -19,13 +19,11 @@ on: jobs: windows-profile-build: name: | - Windows Profile Build - ${{ matrix.arch == 'x86_64' && 'generic' || - matrix.arch == 'x86_64-v3' && 'specific' || - matrix.arch == 'aarch64' && 'arm64' }} + Windows Profile Build - ${{ matrix.arch }} strategy: fail-fast: false matrix: - arch: [x86_64, x86_64-v3, aarch64] + arch: [x86_64, aarch64] runs-on: windows-latest @@ -53,9 +51,7 @@ jobs: uses: actions/download-artifact@v4 with: path: C:\artifact - name: ${{ matrix.arch == 'x86_64' && 'generic' || - matrix.arch == 'x86_64-v3' && 'specific' || - matrix.arch == 'aarch64' && 'generic' }}-zen-windows-profile-data-and-jarlog.zip + name: ${{ matrix.arch == 'aarch64' && 'arm64' || matrix.arch }}-zen-windows-profile-data-and-jarlog.zip - name: Unpack artifact run: | @@ -112,6 +108,4 @@ jobs: path: | merged.profdata en-US.log - name: windows-profdata-${{ matrix.arch == 'x86_64' && 'generic' || - matrix.arch == 'x86_64-v3' && 'specific' || - matrix.arch == 'aarch64' && 'arm64' }} + name: windows-profdata-${{ matrix.arch == 'aarch64' && 'arm64' || matrix.arch }} diff --git a/.github/workflows/windows-release-build.yml b/.github/workflows/windows-release-build.yml index 041958973..fa75377d7 100644 --- a/.github/workflows/windows-release-build.yml +++ b/.github/workflows/windows-release-build.yml @@ -21,13 +21,13 @@ on: jobs: windows-build: - name: Build Windows - ${{ matrix.arch == 'x86_64' && 'Generic' || matrix.arch == 'x86_64-v3' && 'Specific' || matrix.arch == 'aarch64' && 'ARM64' }} + name: Build Windows - ${{ matrix.arch }} runs-on: ubuntu-latest strategy: fail-fast: false matrix: - arch: [x86_64, x86_64-v3, aarch64] + arch: [x86_64, aarch64] steps: - name: Free Disk Space (Ubuntu) @@ -141,7 +141,7 @@ jobs: if: ${{ !inputs.generate-gpo }} with: path: ~/artifact - name: windows-profdata-${{ matrix.arch == 'x86_64' && 'generic' || matrix.arch == 'x86_64-v3' && 'specific' || matrix.arch == 'aarch64' && 'arm64' }} + name: windows-profdata-${{ matrix.arch == 'aarch64' && 'arm64' || matrix.arch }} - name: Show artifact info if: ${{ !inputs.generate-gpo }} @@ -190,16 +190,16 @@ jobs: - name: Rename artifacts if: ${{ !inputs.generate-gpo }} run: | - mv ./zen.win64.zip zen.win-${{ matrix.arch == 'x86_64' && 'generic' || matrix.arch == 'x86_64-v3' && 'specific' || matrix.arch == 'aarch64' && 'arm64' }}.zip - mv ./dist/output.mar windows${{ matrix.arch == 'x86_64' && '-generic' || matrix.arch == 'aarch64' && '-arm64' || '' }}.mar - mv ./dist/zen.installer.exe ./zen.installer${{ matrix.arch == 'x86_64' && '-generic' || matrix.arch == 'aarch64' && '-arm64' || '' }}.exe + mv ./zen.win64.zip zen.win-${{ matrix.arch == 'aarch64' && 'arm64' || matrix.arch }}.zip + mv ./dist/output.mar windows${{ matrix.arch == 'aarch64' && '-arm64' || '' }}.mar + mv ./dist/zen.installer.exe ./zen.installer${{ matrix.arch == 'aarch64' && '-arm64' || '' }}.exe - name: Upload artifact (PGO) uses: actions/upload-artifact@v4 if: ${{ inputs.generate-gpo }} with: retention-days: 5 - name: ${{ matrix.arch == 'x86_64' && 'generic' || matrix.arch == 'x86_64-v3' && 'specific' || matrix.arch == 'aarch64' && 'arm64' }}-${{ inputs.profile-data-path-archive }} + name: ${{ matrix.arch == 'aarch64' && 'arm64' || matrix.arch }}-${{ inputs.profile-data-path-archive }} path: ./zen.win64-pgo-stage-1.zip - name: Remove unnecessary files from obj @@ -219,7 +219,7 @@ jobs: uses: actions/upload-artifact@v4 with: retention-days: 5 - name: windows-x64-obj-${{ matrix.arch == 'x86_64' && 'generic' || matrix.arch == 'x86_64-v3' && 'specific' || matrix.arch == 'aarch64' && 'arm64' }} + name: windows-x64-obj-${{ matrix.arch == 'aarch64' && 'arm64' || matrix.arch }} path: engine/obj-${{ matrix.arch == 'aarch64' && 'aarch64' || 'x86_64' }}-pc-windows-msvc/ - name: Upload artifact (if Twilight branch, binary) @@ -227,29 +227,29 @@ jobs: uses: actions/upload-artifact@v4 with: retention-days: 5 - name: zen.win-${{ matrix.arch == 'x86_64' && 'generic' || matrix.arch == 'x86_64-v3' && 'specific' || matrix.arch == 'aarch64' && 'arm64' }}.zip - path: ./zen.win-${{ matrix.arch == 'x86_64' && 'generic' || matrix.arch == 'x86_64-v3' && 'specific' || matrix.arch == 'aarch64' && 'arm64' }}.zip + name: zen.win-${{ matrix.arch == 'aarch64' && 'arm64' || matrix.arch }}.zip + path: ./zen.win-${{ matrix.arch == 'aarch64' && 'arm64' || matrix.arch }}.zip - name: Upload artifact (if Twilight branch, installer) if: ${{ inputs.release-branch == 'twilight' && !inputs.generate-gpo }} uses: actions/upload-artifact@v4 with: retention-days: 5 - name: zen.installer${{ matrix.arch == 'x86_64' && '-generic' || matrix.arch == 'aarch64' && '-arm64' || '' }}.exe - path: ./zen.installer${{ matrix.arch == 'x86_64' && '-generic' || matrix.arch == 'aarch64' && '-arm64' || '' }}.exe + name: zen.installer${{ matrix.arch == 'aarch64' && '-arm64' || '' }}.exe + path: ./zen.installer${{ matrix.arch == 'aarch64' && '-arm64' || '' }}.exe - name: Upload artifact (if Twilight branch, .mar) if: ${{ inputs.release-branch == 'twilight' && !inputs.generate-gpo }} uses: actions/upload-artifact@v4 with: retention-days: 5 - name: windows${{ matrix.arch == 'x86_64' && '-generic' || matrix.arch == 'aarch64' && '-arm64' || '' }}.mar - path: ./windows${{ matrix.arch == 'x86_64' && '-generic' || matrix.arch == 'aarch64' && '-arm64' || '' }}.mar + name: windows${{ matrix.arch == 'aarch64' && '-arm64' || '' }}.mar + path: ./windows${{ matrix.arch == 'aarch64' && '-arm64' || '' }}.mar - name: Upload artifact (if Twilight branch, update manifests) if: ${{ inputs.release-branch == 'twilight' && !inputs.generate-gpo }} uses: actions/upload-artifact@v4 with: retention-days: 5 - name: windows_update_manifest_${{ matrix.arch == 'x86_64' && 'generic' || matrix.arch == 'x86_64-v3' && 'specific' || matrix.arch == 'aarch64' && 'arm64' }} + name: windows_update_manifest_${{ matrix.arch == 'aarch64' && 'arm64' || matrix.arch }} path: ./dist/update diff --git a/README.md b/README.md index 7f13b3a45..d081a3eb7 100644 --- a/README.md +++ b/README.md @@ -75,11 +75,7 @@ If you dont see your OS listed below, that's because we already have it in our [ ##### Winget ```ps -# Generic version winget install --id Zen-Team.Zen-Browser - -# Optimized version -winget install --id Zen-Team.Zen-Browser.Optimized ``` #### macOS @@ -98,11 +94,7 @@ brew install --cask zen-browser ##### Arch-based distributions ```sh -# For generic version yay -S zen-browser-bin - -# For optimized version -yay -S zen-browser-avx2-bin ``` ##### Other Linux distributions (AppImage with automated system integration) diff --git a/build/winsign/sign.ps1 b/build/winsign/sign.ps1 index 6eac6692d..004a6cf03 100644 --- a/build/winsign/sign.ps1 +++ b/build/winsign/sign.ps1 @@ -21,10 +21,8 @@ mkdir windsign-temp -ErrorAction SilentlyContinue gh run download $GithubRunId --name windows-x64-obj-arm64 -D windsign-temp\windows-x64-obj-arm64 echo "Downloaded arm64 artifacts" -gh run download $GithubRunId --name windows-x64-obj-specific -D windsign-temp\windows-x64-obj-specific -echo "Downloaded specific artifacts" -gh run download $GithubRunId --name windows-x64-obj-generic -D windsign-temp\windows-x64-obj-generic -echo "Downloaded generic artifacts" +gh run download $GithubRunId --name windows-x64-obj-x86_64 -D windsign-temp\windows-x64-obj-x86_64 +echo "Downloaded x86_64 artifacts" #Wait-Job -Name "DownloadGitObjectsRepo" @@ -48,34 +46,30 @@ function SignAndPackage($name) { echo "Packaging $name" $env:SURFER_SIGNING_MODE="sign" $env:MAR="$PWD\\build\\winsign\\mar.exe" - if ($name -eq "generic") { - $env:SURFER_COMPAT="x86_64" + if ($name -eq "arm64") { + $env:SURFER_COMPAT="aarch64" } else { - if ($name -eq "arm64") { - $env:SURFER_COMPAT="aarch64" - } else { - $env:SURFER_COMPAT="x86_64-v3" - } + $env:SURFER_COMPAT="x86_64" } echo "Compat Mode? $env:SURFER_COMPAT" pnpm surfer package --verbose # In the release script, we do the following: - # tar -xvf .github/workflows/object/windows-x64-signed-generic.tar.gz -C windows-x64-signed-generic + # tar -xvf .github/workflows/object/windows-x64-signed-x86_64.tar.gz -C windows-x64-signed-x86_64 # We need to create a tar with the same structure and no top-level directory # Inside, we need: # - update_manifest/* - # - windows.mar or windows-generic.mar - # - zen.installer.exe or zen.installer-generic.exe - # - zen.win-generic.zip or zen.win-specific.zip + # - windows.mar + # - zen.installer.exe + # - zen.win-x86_64.zip echo "Creating tar for $name" rm .\windsign-temp\windows-x64-signed-$name -Recurse -ErrorAction SilentlyContinue mkdir windsign-temp\windows-x64-signed-$name - # Move the MAR, add the `-generic` suffix if needed + # Move the MAR, add the `-arm64` suffix if needed echo "Moving MAR for $name" - if ($name -eq "generic" -or $name -eq "arm64") { + if ($name -eq "arm64") { mv .\dist\output.mar windsign-temp\windows-x64-signed-$name\windows-$name.mar } else { mv .\dist\output.mar windsign-temp\windows-x64-signed-$name\windows.mar @@ -83,7 +77,7 @@ function SignAndPackage($name) { # Move the installer echo "Moving installer for $name" - if ($name -eq "generic" -or $name -eq "arm64") { + if ($name -eq "arm64") { mv .\dist\zen.installer.exe windsign-temp\windows-x64-signed-$name\zen.installer-$name.exe } else { mv .\dist\zen.installer.exe windsign-temp\windows-x64-signed-$name\zen.installer.exe @@ -118,8 +112,7 @@ function SignAndPackage($name) { } SignAndPackage arm64 -SignAndPackage specific -SignAndPackage generic +SignAndPackage x86_64 echo "All artifacts signed and packaged, ready for release!" echo "Commiting the changes to the repository" @@ -132,12 +125,11 @@ cd ..\.. # Cleaning up echo "All done!" -echo "All the artifacts (Generic and Specific) are signed and packaged, get a rest now!" +echo "All the artifacts (x86_64 and arm46) are signed and packaged, get a rest now!" Read-Host "Press Enter to continue" echo "Cleaning up" -rmdir windsign-temp\windows-x64-obj-specific -Recurse -ErrorAction SilentlyContinue -rmdir windsign-temp\windows-x64-obj-generic -Recurse -ErrorAction SilentlyContinue +rmdir windsign-temp\windows-x64-obj-x86_64 -Recurse -ErrorAction SilentlyContinue rmdir windsign-temp\windows-x64-obj-arm64 -Recurse -ErrorAction SilentlyContinue echo "Opening visual studio code" diff --git a/configs/linux/mozconfig b/configs/linux/mozconfig index 698edb33f..90382e702 100644 --- a/configs/linux/mozconfig +++ b/configs/linux/mozconfig @@ -33,23 +33,6 @@ elif test "$SURFER_COMPAT" = "aarch64"; then export CXXFLAGS="$CXXFLAGS -O3" export LDFLAGS="$LDFLAGS -Wl,-O3" export RUSTFLAGS="$RUSTFLAGS -C codegen-units=1 -Clink-args=--icf=safe" -elif test "$ZEN_RELEASE"; then - ac_add_options --target=x86_64-pc-linux - ac_add_options --enable-eme=widevine - - # Enable Profile Guided Optimization - export MOZ_PGO=1 - ac_add_options MOZ_PGO=1 - - # Optimization flags for general release - ac_add_options --enable-wasm-avx - ac_add_options --enable-optimize="-O3 -march=x86-64-v3 -msse3 -mssse3 -msse4.1 -msse4.2 -mavx -maes -mpopcnt -mpclmul" - - export CFLAGS="$CFLAGS -O3 -ffp-contract=fast -march=x86-64-v3 -msse3 -mssse3 -msse4.1 -msse4.2 -mavx -mavx2 -mfma -maes -mpopcnt -mpclmul" - export CPPFLAGS="$CPPFLAGS -O3 -ffp-contract=fast -march=x86-64-v3 -msse3 -mssse3 -msse4.1 -msse4.2 -mavx -mavx2 -mfma -maes -mpopcnt -mpclmul" - export CXXFLAGS="$CXXFLAGS -O3 -ffp-contract=fast -march=x86-64-v3 -msse3 -mssse3 -msse4.1 -msse4.2 -mavx -mavx2 -mfma -maes -mpopcnt -mpclmul" - export LDFLAGS="$LDFLAGS -Wl,-O3 -Wl,-mllvm,-fp-contract=fast -march=x86-64-v3" - export RUSTFLAGS="$RUSTFLAGS -C target-cpu=x86-64-v3 -C target-feature=+sse4.1 -C target-feature=+avx2 -C codegen-units=1 -Clink-args=--icf=safe" fi export VERBOSE=1 diff --git a/configs/windows/mozconfig b/configs/windows/mozconfig index b90923498..bd2537572 100644 --- a/configs/windows/mozconfig +++ b/configs/windows/mozconfig @@ -50,18 +50,6 @@ elif test "$SURFER_COMPAT" = "aarch64"; then export CXXFLAGS="-O2 -march=armv8.2-a+simd -mtune=cortex-a55" export LDFLAGS="-Wl,-O2 -march=armv8.2-a+simd -mtune=cortex-a55" export RUSTFLAGS="-C target-feature=+v8.2a -C codegen-units=1 -Ctarget-cpu=cortex-a55" -else - ac_add_options --target=x86_64-pc-windows-msvc - ac_add_options --enable-eme=widevine - - ac_add_options --enable-optimize="-O2 -msse3 -mssse3 -msse4.1 -msse4.2 -mavx -mavx2 -mfma -maes -ftree-vectorize -Xclang -w" - ac_add_options --enable-wasm-avx - - export CFLAGS="-O2 -msse3 -mssse3 -msse4.1 -msse4.2 -mavx -mavx2 -mfma -maes -march=x86-64-v3" - export CPPFLAGS="-O2 -msse3 -mssse3 -msse4.1 -msse4.2 -mavx -mavx2 -mfma -maes -march=x86-64-v3" - export CXXFLAGS="-O2 -flto=thin -msse3 -mssse3 -msse4.1 -msse4.2 -mavx -mavx2 -mfma -maes -march=x86-64-v3" - export LDFLAGS="-Wl,-O3 -march=x86-64-v3" - export RUSTFLAGS="-Clink-args=--icf=safe -C target-feature=+avx2 -C codegen-units=1 -Ctarget-cpu=x86-64-v3" fi #export POLLY="-mllvm -polly -mllvm -polly-2nd-level-tiling -mllvm -polly-loopfusion-greedy -mllvm -polly-pattern-matching-based-opts -mllvm -polly-position=before-vectorizer -mllvm -polly-vectorizer=stripmine" diff --git a/flatpak/io.github.zen_browser.zen.yml.template b/flatpak/io.github.zen_browser.zen.yml.template index 2fd158194..845498708 100644 --- a/flatpak/io.github.zen_browser.zen.yml.template +++ b/flatpak/io.github.zen_browser.zen.yml.template @@ -44,7 +44,7 @@ modules: sources: - type: archive - url: https://github.com/zen-browser/desktop/releases/download/{version}/zen.linux-generic.tar.bz2 + url: https://github.com/zen-browser/desktop/releases/download/{version}/zen.linux-x86_64.tar.bz2 sha256: {linux_sha256} strip-components: 0 diff --git a/package.json b/package.json index 14a77dbf4..3241185ec 100644 --- a/package.json +++ b/package.json @@ -33,7 +33,7 @@ }, "homepage": "https://github.com/zen-browser/core#readme", "dependencies": { - "@zen-browser/surfer": "^1.6.4" + "@zen-browser/surfer": "^1.7.0" }, "devDependencies": { "husky": "^9.1.5", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 46a49dd57..d7d3390c6 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -9,8 +9,8 @@ importers: .: dependencies: '@zen-browser/surfer': - specifier: ^1.6.4 - version: 1.6.4 + specifier: ^1.7.0 + version: 1.7.0 devDependencies: husky: specifier: ^9.1.5 @@ -119,8 +119,8 @@ packages: '@types/node@17.0.45': resolution: {integrity: sha512-w+tIMs3rq2afQdsPJlODhoUEKzFP1ayaoyl1CcnwtIlsVe7K7bA1NGm4s3PraqTLlXnbIN84zuBlxBWo1u9BLw==} - '@zen-browser/surfer@1.6.4': - resolution: {integrity: sha512-JmTHLHTbTLPgrakdU/m1KQgetPMQNGjYgGGVoi2AenvVDlJf3j+L2it0XehAqRFIQhXmbEuF1nSDV4Vla/vUUg==} + '@zen-browser/surfer@1.7.0': + resolution: {integrity: sha512-LKpMfcXvzf9VmXHydVF9sO4srtTdgjdrNYHHwDucNmnqIdamIYmP7KWAlZViohdBLdXPWODYY0IsZPAKNf3BCg==} hasBin: true ansi-escapes@7.0.0: @@ -1003,7 +1003,7 @@ snapshots: '@types/node@17.0.45': {} - '@zen-browser/surfer@1.6.4': + '@zen-browser/surfer@1.7.0': dependencies: '@resvg/resvg-js': 1.4.0 async-icns: 1.0.2 diff --git a/surfer.json b/surfer.json index 3dd48fe7e..077e94773 100644 --- a/surfer.json +++ b/surfer.json @@ -27,8 +27,6 @@ "macos-aarch64": "macos-aarch64.mar", "linux": "linux.mar", "macos-x64": "macos-x64.mar", - "windows-compat": "windows-generic.mar", - "linux-compat": "linux-generic.mar", "windows-arm64": "windows-arm64.mar", "linux-aarch64": "linux-aarch64.mar" }