Skip to content

Commit 44055e6

Browse files
jguiceclaude
andcommitted
ci(release): build DMG with create-dmg for drag-to-Applications layout
Replaces bare hdiutil create with create-dmg, producing the classic 540x380 Finder window with utter.app on the left and an Applications symlink on the right. No custom background image yet; icon positions are set via create-dmg flags. Still signed + notarized + stapled by the subsequent steps. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 60835e0 commit 44055e6

1 file changed

Lines changed: 15 additions & 5 deletions

File tree

.github/workflows/release.yml

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,9 @@ jobs:
242242
xcrun stapler staple target/release/utter.app
243243
xcrun stapler validate target/release/utter.app
244244
245+
- name: Install create-dmg
246+
run: brew install create-dmg
247+
245248
- name: Create DMG
246249
env:
247250
RAW_VERSION: ${{ github.ref_name }}
@@ -252,14 +255,21 @@ jobs:
252255
VERSION="${TAG#v}"
253256
DMG_NAME="utter-${VERSION}-macos-arm64.dmg"
254257
mkdir -p dist
255-
# Use a staging dir so the DMG layout is just the app (no stray files).
256258
STAGE="$RUNNER_TEMP/dmg-stage"
259+
rm -rf "$STAGE"
257260
mkdir -p "$STAGE"
258261
cp -R target/release/utter.app "$STAGE/"
259-
hdiutil create -volname "utter" \
260-
-srcfolder "$STAGE" \
261-
-ov -format UDZO \
262-
"dist/${DMG_NAME}"
262+
create-dmg \
263+
--volname "utter" \
264+
--window-pos 200 120 \
265+
--window-size 540 380 \
266+
--icon-size 100 \
267+
--icon "utter.app" 140 190 \
268+
--app-drop-link 400 190 \
269+
--hide-extension "utter.app" \
270+
--no-internet-enable \
271+
"dist/${DMG_NAME}" \
272+
"$STAGE"
263273
264274
- name: Sign + notarize + staple DMG
265275
run: |

0 commit comments

Comments
 (0)