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: |