Skip to content

A high-performance Android storage analyzer that bypasses MTP using a native C++ daemon, a Rust TCP bridge, and a React Treemap UI.

Rust

Build a universal macOS DMG for Apple Silicon and Intel (#195)

Vishnu Srivatsavaec83692de898
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index e6ad29f..c3576e4 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -20,6 +20,7 @@ jobs:
# catalog ("error-glibc-too-new" otherwise).
- os: ubuntu-22.04
platform: linux
+ build_args: ""
installer_artifact: SocketSweep-Linux
installer_paths: |
src-tauri/target/release/bundle/deb/*.deb
@@ -29,12 +30,16 @@ jobs:
adb_sha256: d230f13842f60f782a8645f9c813f8f845bf36089ea7289f28c48f17979313f1
- os: macos-latest
platform: macos
+ # One DMG for Apple Silicon and Intel Macs alike: the universal
+ # target compiles both slices and lipo-merges them.
+ build_args: --target universal-apple-darwin
installer_artifact: SocketSweep-macOS
- installer_paths: src-tauri/target/release/bundle/dmg/*.dmg
+ installer_paths: src-tauri/target/universal-apple-darwin/release/bundle/dmg/*.dmg
adb_url: https://dl.google.com/android/repository/platform-tools_r37.0.1-darwin.zip
adb_sha256: ee39ad5967e95c2a07f04dbcbde96b1a0c916ba376096db5d2f498b7727a5d1d
- os: windows-latest
platform: windows
+ build_args: ""
installer_artifact: SocketSweep-Windows
installer_paths: |
src-tauri/target/release/bundle/msi/*.msi
@@ -177,9 +182,13 @@ jobs:
# ── Build Tauri desktop app ───────────────────────────────────────────
# This single command builds the React frontend (beforeBuildCommand),
# compiles the Rust bridge, and packages everything into native
- # platform installers (.dmg / .deb / .AppImage / .msi / .exe).
+ # platform installers (.dmg / .deb / .AppImage / .msi / .exe). The
+ # macOS job builds the universal target for Apple Silicon and Intel.
+ - name: Add universal macOS Rust targets
+ if: runner.os == 'macOS'
+ run: rustup target add aarch64-apple-darwin x86_64-apple-darwin
- name: Build Tauri app
- run: npm run tauri -- build --verbose
+ run: npm run tauri -- build --verbose ${{ matrix.build_args }}
- name: Test Rust bridge
run: cargo test --locked --manifest-path src-tauri/Cargo.toml --lib
diff --git a/README.md b/README.md
index 12b234c..c7b2304 100644
--- a/README.md
+++ b/README.md
@@ -71,7 +71,7 @@ Measure ADB and MTP file copy throughput separately using the [transfer benchmar
| Platform | Download |
|----------|----------|
| 🪟 **Windows** | [Installer (.exe)](https://github.com/VishnuSrivatsava/SocketSweep/releases/tag/v1.3.0) · [Enterprise (.msi)](https://github.com/VishnuSrivatsava/SocketSweep/releases/tag/v1.3.0) |
-| 🍎 **macOS** (Apple Silicon) | [Disk Image (.dmg)](https://github.com/VishnuSrivatsava/SocketSweep/releases/tag/v1.3.0) |
+| 🍎 **macOS** (Apple Silicon & Intel) | [Disk Image (.dmg)](https://github.com/VishnuSrivatsava/SocketSweep/releases/tag/v1.3.0) |
| 🐧 **Linux** | [AppImage](https://github.com/VishnuSrivatsava/SocketSweep/releases/tag/v1.3.0) · [.deb](https://github.com/VishnuSrivatsava/SocketSweep/releases/tag/v1.3.0) |
> **AppImage updates:** Starting with v1.2.0, AppImages include update information and a matching `.zsync` release asset for delta updates with [AppImageUpdate](https://github.com/AppImageCommunity/AppImageUpdate). Updates follow the latest published stable release. Existing v1.1.1 downloads need one manual upgrade to an AppImage with this metadata.