From 5042dd0534d6fa8626ff80f0bb0425b8c2ab8109 Mon Sep 17 00:00:00 2001 From: ComputelessComputer <63365510+ComputelessComputer@users.noreply.github.com> Date: Wed, 20 May 2026 23:44:00 +0900 Subject: [PATCH] fix(ci): skip MLX metallib on Intel macOS builds Use an Intel-specific Tauri config override so stable x86_64 release jobs do not bundle the Apple-Silicon-only MLX resource. --- .github/workflows/desktop_cd.yaml | 9 ++++++--- apps/desktop/src-tauri/tauri.conf.macos-intel.json | 9 +++++++++ 2 files changed, 15 insertions(+), 3 deletions(-) create mode 100644 apps/desktop/src-tauri/tauri.conf.macos-intel.json diff --git a/.github/workflows/desktop_cd.yaml b/.github/workflows/desktop_cd.yaml index bcbf672191..8880be91d2 100644 --- a/.github/workflows/desktop_cd.yaml +++ b/.github/workflows/desktop_cd.yaml @@ -109,11 +109,14 @@ jobs: apple-certificate-password: ${{ secrets.APPLE_CERTIFICATE_PASSWORD }} keychain-password: ${{ secrets.KEYCHAIN_PASSWORD }} - run: | - FEATURES_FLAG="" + BUILD_ARGS=(--target "${{ matrix.target }}" --config "${{ env.TAURI_CONF_PATH }}" --verbose) + if [[ "${{ matrix.target }}" == "x86_64-apple-darwin" ]]; then + BUILD_ARGS+=(--config ./src-tauri/tauri.conf.macos-intel.json) + fi if [[ "${{ inputs.channel }}" == "staging" ]]; then - FEATURES_FLAG="--features devtools" + BUILD_ARGS+=(--features devtools) fi - pnpm -F desktop tauri build --target ${{ matrix.target }} --config ${{ env.TAURI_CONF_PATH }} --verbose $FEATURES_FLAG + pnpm -F desktop tauri build "${BUILD_ARGS[@]}" env: # https://v2.tauri.app/reference/environment-variables/ CI: false diff --git a/apps/desktop/src-tauri/tauri.conf.macos-intel.json b/apps/desktop/src-tauri/tauri.conf.macos-intel.json new file mode 100644 index 0000000000..a0c9604b53 --- /dev/null +++ b/apps/desktop/src-tauri/tauri.conf.macos-intel.json @@ -0,0 +1,9 @@ +{ + "bundle": { + "macOS": { + "files": { + "Resources/mlx-swift_Cmlx.bundle/default.metallib": null + } + } + } +}