Files
OpenResearch/scripts
Myles AndersonandClaude Opus 4.8 8c17722d88 feat(macos): styled drag-to-Applications DMG installer window (#188)
Opening OpenResearch.dmg now shows OpenResearch.app and an /Applications
alias to drag it onto, over a branded background — instead of a bare app
in the DMG root.

- scripts/generate-dmg-background.mjs: pure-Node PNG background (no image
  deps, mirroring generate-icon.mjs) with the brand mark + a drag arrow,
  rendered at 1x and 2x and combined into a HiDPI background.tiff.
- scripts/package-macos-app.sh: stage app + Applications symlink +
  background, lay out the Finder window (size, icon positions, background)
  via AppleScript on a read-write image, then flatten to the compressed
  DMG. Styling is best-effort: if the Finder step fails (e.g. headless),
  a functional but unstyled DMG still ships, and the temp/mount cleanup
  runs regardless.
- release-macos-app.yml: bound the 10x-billed macOS job with a timeout.
- DISTRIBUTION.md: document the installer window and its constants.

Verified locally: styled DMG builds with the app + Applications alias +
branded background, 640x400 window; happy-path cleanup leaves no leaked
temp dirs or mounts.

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
2026-08-12 19:14:15 -07:00
..