hex/packaging/macos/dmg/layout.py
Kit Langton 8184e51aed
macOS: lay out the installer window with Hex's keycap (#297)
* macOS: lay out the installer window with Hex's keycap (t423)

The DMG opens on a light window with Hex, an arrow to Applications, and Hex's own dark Option keycap beside "Hold it, say it, done." packaging/macos/dmg holds the background (1x and 2x TIFF), Finder's .DS_Store, and render.sh, which draws the keycap with Rune and regenerates both. scripts/notarize-app.sh lays out the local DMG with them; the Release workflow's DMG follows in a separate .github/ PR.

* Show the whole background: the window height includes its title bar

* Follow the hex rename; satisfy clippy
2026-10-28 12:03:13 -07:00

19 lines
797 B
Python

# dmgbuild settings for the installer window. render.sh builds a throwaway
# DMG with these only to take its .DS_Store; the release DMG copies that file
# and background.tiff in beside Hex.app and the Applications link.
# The .DS_Store finds the background by the volume name, Hex, and its path,
# /.background.tiff. Finder measures window_rect from the bottom of the
# screen, and its height includes the title bar.
files = [defines["app"]]
symlinks = {"Applications": "/Applications"}
background = defines["background"]
window_rect = ((200, 368), (660, 432))
default_view = "icon-view"
show_status_bar = False
show_tab_view = False
show_toolbar = False
show_pathbar = False
show_sidebar = False
icon_size = 128
text_size = 13
icon_locations = {"Hex.app": (170, 178), "Applications": (490, 178)}