Skip to content

Give the disk image a Retina background and centre its icons on the arrow - #253

Merged
Johann-PLW merged 1 commit into
abrignoni:mainfrom
Johann-PLW:fix/dmg-background-arrow
Oct 1, 2026
Merged

Johann-PLW merged 1 commit into
abrignoni:mainfrom
Johann-PLW:fix/dmg-background-arrow

Conversation

@Johann-PLW

Copy link
Copy Markdown
Collaborator

New disk image background, dated 2026-10-01, exported from the source artwork at two sizes:

  • packaging/dmg_background.png, 960x540.
  • packaging/[email protected], 1920x1080. This is new for GLEAPP. dmgbuild finds it by name and joins it to the 1x with tiffutil -cathidpicheck. Until now a Retina Mac showed the 1x scaled up and blurred.

The arrow on the new background sits 44 points further right, centred at x=479. The app and Applications icons move with it, from (260, 290) and (610, 290) to (304, 290) and (654, 290). iLEAPP, ALEAPP, RLEAPP, VLEAPP and DLEAPP now use the same layout.

Tests

Two new tests in tests/test_build_macos.py:

  • test_dmg_icons_sit_either_side_of_the_arrow: finds the arrow on the background and requires the two icons to straddle it. It fails with the old positions.
  • test_dmg_retina_background_is_exactly_twice_the_size: checks the @2x image is exactly twice the size of the 1x, which tiffutil -cathidpicheck requires.

.claude/rules/gleapp-cross-platform.md describes both.

Verified locally

macOS arm64:

  • tests/test_build_macos.py passes.
  • I built a disk image with dmgbuild from packaging/dmg_settings.py around a stub .app. Its .background.tiff holds both the 960x540 and 1920x1080 images, and its .DS_Store places the icons at (304, 290) and (654, 290).
  • pylint reports no warnings on the changed files.

I could not run a full local build on this machine. The spec's GPL guard refused libraries that PyInstaller picked up from the local environment (libx264, libx265, librubberband, libvidstab). That is unrelated to this change. test_builds.yml builds the real disk images on this PR.

🤖 Generated with Claude Code

…rrow

The new background (2026-10-01) is exported at 960x540 and, for the
first time, at 1920x1080 as [email protected], which dmgbuild finds
by name and joins to the 1x with tiffutil -cathidpicheck; without it a
Retina Mac showed the 1x scaled up and blurred.

Its arrow sits 44 points further right, centred at x=479, so the app and
the Applications link move from (260, 290) and (610, 290) to (304, 290)
and (654, 290), the layout iLEAPP, ALEAPP, RLEAPP, VLEAPP and DLEAPP now
use.

Two tests: the icons must straddle the arrow found on the background,
and the @2x image must be exactly twice the 1x.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@Johann-PLW
Johann-PLW merged commit 20c219d into abrignoni:main Oct 1, 2026
12 checks passed
@Johann-PLW
Johann-PLW deleted the fix/dmg-background-arrow branch October 1, 2026 10:03
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