Skip to content

feat(release): a drag-to-Applications disk image - #40

Merged
lucasnevespereira merged 1 commit into
mainfrom
feat/dmg-layout
Nov 11, 2026
Merged

lucasnevespereira merged 1 commit into
mainfrom
feat/dmg-layout

Conversation

@lucasnevespereira

Copy link
Copy Markdown
Member

Summary

The DMG opened as a big, empty-looking Finder window, with OneCorp, Applications and a stray .VolumeIcon.icns scattered at default positions. Tauri lays the window out by scripting Finder with AppleScript, and that doesn't take effect on a CI runner.

This does what Farol does: the layout lives in a committed .DS_Store, so nothing scripts Finder.

 release.yml
-  cargo tauri build --bundles app,dmg
+  cargo tauri build --bundles app
+  scripts/dmg.sh OneCorp.app OneCorp.dmg     # signed with APPLE_SIGNING_IDENTITY
   notarize + staple the dmg                  # unchanged
 Makefile (bundle)
-  cargo tauri build --bundles app,dmg
+  cargo tauri build --bundles app
+  scripts/dmg.sh …
+app/dmg/DS_Store                             # 540×340, no toolbar, 96px icons
+                                             # OneCorp.app at (140,150), Applications at (400,150)

app/dmg/DS_Store is Farol's layout with the app entry renamed to OneCorp.app. Finder matches positions by item name.

Evidence

  • Before: the 0.1.7 DMG opened as in the screenshot from the conversation: default positions, a large window, .VolumeIcon.icns showing.
    After: make bundle builds target/release/bundle/dmg/OneCorp.dmg. Mounted, it holds .DS_Store, Applications -> /Applications and OneCorp.app, and nothing else.
  • The layout only shows in Finder, so it still needs a look: open the local OneCorp.dmg.

Merge Danger

Door: two-way

Blast Radius: release

  • The release job: if dmg.sh fails, the job stops before publishing, as before.
  • Unchanged: the DMG is still signed, notarized and stapled, and still published as OneCorp.dmg.

@lucasnevespereira
lucasnevespereira merged commit 662cf7e into main Nov 11, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant