From 7eb48d32d7a52cb141b6dc3522ff9f95f66688ac Mon Sep 17 00:00:00 2001 From: Xavier Lau Date: Mon, 15 Jul 2024 15:46:05 +0800 Subject: [PATCH] Fix macOS release --- .github/create-dmg | 6 ++++-- .github/workflows/release.yml | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/create-dmg b/.github/create-dmg index 1df91ff..eb12628 100755 --- a/.github/create-dmg +++ b/.github/create-dmg @@ -1,5 +1,7 @@ #!/bin/sh +TARGET=$1 + create-dmg \ --volname "AiR Installer" \ --window-size 640 320 \ @@ -7,5 +9,5 @@ create-dmg \ --icon "AiR.app" 165 135 \ --hide-extension "AiR.app" \ --app-drop-link 470 135 \ - "AiR-aarch64-apple-darwin.dmg" \ - "target/aarch64-apple-darwin/ci-release/bundle/osx/AiR.app" + "AiR-${TARGET}.dmg" \ + "target/${TARGET}/ci-release/bundle/osx/AiR.app" diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4e9be39..278bd61 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -61,7 +61,7 @@ jobs: # TODO: notarize the app. - name: Pack (macOS) if: matrix.target.os == 'macos-latest' - run: .github/create-dmg + run: .github/create-dmg ${{ matrix.target.name }} - name: Pack (Windows) if: matrix.target.os == 'windows-latest' run: |