From 0fa8df9a21d9bef8241a6aa78b8eed8fc386528a Mon Sep 17 00:00:00 2001 From: gardenGnostic Date: Mon, 9 Mar 2026 14:08:02 +0100 Subject: [PATCH] Add support for building macOS DMG for Intel --- .github/workflows/release.yml | 29 +++++++++++++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0c9db46..73f6bfd 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -61,7 +61,7 @@ jobs: if-no-files-found: error build-mac: - name: Build macOS DMG + name: Build macOS DMG (Apple Silicon) runs-on: macos-latest steps: - name: Checkout @@ -84,9 +84,33 @@ jobs: path: dist/*.dmg if-no-files-found: error + build-mac-intel: + name: Build macOS DMG (Intel) + runs-on: macos-13 + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: 20 + cache: "npm" + - name: Install dependencies + run: npm ci + - name: Build macOS DMG (Intel) + run: npm run dist:mac + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Upload macOS Intel artifact + uses: actions/upload-artifact@v4 + with: + name: mac-intel-dist + path: dist/*.dmg + if-no-files-found: error + release: name: Create GitHub Release - needs: [build-linux, build-windows, build-mac] + needs: [build-linux, build-windows, build-mac, build-mac-intel] runs-on: ubuntu-latest steps: - name: Download all artifacts @@ -104,5 +128,6 @@ jobs: artifacts/linux-dist/* artifacts/windows-dist/* artifacts/mac-dist/* + artifacts/mac-intel-dist/* env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}