Skip to content

Commit 77f3260

Browse files
committed
brew install
1 parent 6dd0aea commit 77f3260

File tree

1 file changed

+3
-14
lines changed

1 file changed

+3
-14
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@ jobs:
9191
path: |
9292
~/.cargo/bin/cargo-bundle
9393
~/Library/Caches/Homebrew
94-
/usr/local/Cellar/create-dmg
9594
key: ${{ runner.os }}-tools-${{ hashFiles('**/Cargo.lock', '.github/workflows/build.yml') }}
9695
restore-keys: |
9796
${{ runner.os }}-tools-
@@ -101,8 +100,8 @@ jobs:
101100
run: cargo install cargo-bundle
102101

103102
- name: Install create-dmg
104-
if: runner.os == 'macOS' && !steps.cache-tools.outputs.cache-hit
105-
run: brew install create-dmg
103+
if: runner.os == 'macOS'
104+
run: npm install --global create-dmg
106105

107106
- name: Create macOS universal binary
108107
if: runner.os == 'macOS'
@@ -121,17 +120,7 @@ jobs:
121120
if: runner.os == 'macOS'
122121
run: |
123122
create-dmg \
124-
--volname "Psst" \
125-
--volicon "assets/logo.icns" \
126-
--window-pos 200 120 \
127-
--window-size 600 400 \
128-
--icon-size 100 \
129-
--icon "Psst.app" 150 160 \
130-
--hide-extension "Psst.app" \
131-
--app-drop-link 450 160 \
132-
"Psst.dmg" \
133-
"target/release/bundle/osx/Psst.app"
134-
working-directory: psst-gui
123+
"target/release/bundle/osx/Psst.app" . || true
135124
136125
- name: Upload macOS DMG
137126
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)