Skip to content

Commit 9d6010b

Browse files
committed
ci: fix notarization picking up CPack's temp.dmg instead of final DMG
1 parent 206b9ae commit 9d6010b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ jobs:
191191
if: startsWith(matrix.os, 'macos-')
192192
run: |
193193
set -euo pipefail
194-
DMG="$(/usr/bin/find build-Release -name '*.dmg' -print -quit)"
194+
DMG="$(/usr/bin/find build-Release -maxdepth 1 -name '*.dmg' -print -quit)"
195195
echo "DMG: $DMG"
196196
197197
JSON_OUT="$(mktemp)"
@@ -230,7 +230,7 @@ jobs:
230230
if: startsWith(matrix.os, 'macos-')
231231
run: |
232232
set -euo pipefail
233-
DMG="$(/usr/bin/find build-Release -name '*.dmg' -print -quit)"
233+
DMG="$(/usr/bin/find build-Release -maxdepth 1 -name '*.dmg' -print -quit)"
234234
xcrun stapler staple "$DMG"
235235
# Optional: also staple the app (useful if you ever upload the .app directly)
236236
APP_BUNDLE="$(/usr/bin/find build-Release -name '*.app' -maxdepth 2 -print -quit)"

0 commit comments

Comments
 (0)