Repository navigation
build(macos): create the dmg with dmgbuild and an arrow background - #49
Merged
Merged
Conversation
Replace the hdiutil step of PackageMacOS with `pipx run dmgbuild==1.6.7` and build/dmg/settings.py, which lays out Preferis.app and the /Applications link side by side in the Finder window (128pt icons, fixed window size). pipx run keeps dmgbuild (MIT) out of the machine, and GitHub's macOS runners carry pipx. The background (build/dmg/background.png and its @2x, drawn from arrow.png by make-background.py with the standard library only) is a dark canvas with a light arrow and a light band under the icons: the Finder has no appearance-aware folder backgrounds, paints transparent areas white, and draws the labels black whenever a window has a background picture, dark mode included. Documented in Platform.ja.md §3.1 and Design.ja.md §4.4. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
# Conflicts: # docs/Design.ja.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
PackageMacOSnow builds the disk image with dmgbuild (MIT) throughpipx run dmgbuild==1.6.7instead ofhdiutil create, so the Finder window of the dmg has a fixed size and layout:Preferis.appon the left, the/Applicationslink on the right, 128pt icons (build/dmg/settings.py).pipx runinstalls nothing on the machine; GitHub's macOS runners carry pipx. The version is pinned inDmgBuildVersion.build/dmg/background.png+@2x, folded by dmgbuild into one Retina TIFF).build/dmg/make-background.py(standard library only) draws both fromarrow.png: a dark canvas, a light arrow, and a light band under the icons. The Finder has no appearance-aware folder backgrounds, paints transparent areas white, and draws the labels black whenever a window has a background picture (dark mode included), so this is the layout that reads the same in both appearances.Verification
dotnet build build/Preferis.Build.proj -t:PackageMacOS -p:RuntimeIdentifier=osx-arm64locally with Xcode 26.6: the dmg containsPreferis.app(codesign --verify --strictpasses), theApplicationslink, and a.background.tiffwith 640×320 @72dpi and 1280×640 @144dpi representations.🤖 Generated with Claude Code