Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

universal mac dmg build

laurenspriem0596045a0bf0
diff --git a/.github/workflows/ensu-build.yml b/.github/workflows/ensu-build.yml
index 8ad6c765f8..890b55e90b 100644
--- a/.github/workflows/ensu-build.yml
+++ b/.github/workflows/ensu-build.yml
@@ -106,11 +106,11 @@ jobs:
- os: ubuntu-22.04
rust-target: x86_64-unknown-linux-gnu
bundle-targets: appimage,deb,rpm
+ # A single universal (arm64 + x86_64) build, so that there
+ # is one dmg that works on all Macs, and existing installs
+ # of either architecture converge onto it via the updater.
- os: macos-latest
- rust-target: x86_64-apple-darwin
- bundle-targets: app,dmg
- - os: macos-latest
- rust-target: aarch64-apple-darwin
+ rust-target: universal-apple-darwin
bundle-targets: app,dmg
- os: windows-latest
rust-target: x86_64-pc-windows-msvc
@@ -141,9 +141,9 @@ jobs:
sudo apt-get update
sudo apt-get install -y libwebkit2gtk-4.1-dev libsoup-3.0-dev libssl-dev libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev
- - name: Install macOS Intel Rust target
- if: matrix.platform.rust-target == 'x86_64-apple-darwin'
- run: rustup target add x86_64-apple-darwin
+ - name: Install macOS Rust targets
+ if: matrix.platform.rust-target == 'universal-apple-darwin'
+ run: rustup target add x86_64-apple-darwin aarch64-apple-darwin
- name: Install web dependencies
working-directory: web