Skip to content

Commit

Permalink
Fix macOS release
Browse files Browse the repository at this point in the history
  • Loading branch information
AurevoirXavier committed Jul 15, 2024
1 parent ed718a3 commit 7eb48d3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions .github/create-dmg
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
#!/bin/sh

TARGET=$1

create-dmg \
--volname "AiR Installer" \
--window-size 640 320 \
--icon-size 128 \
--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"
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down

0 comments on commit 7eb48d3

Please sign in to comment.