Repository navigation
macOS DMG: branded window background and icon layout - #272
Conversation
|
Thank you, the DMG window looks great and the README explaining the layout is really helpful! Two things before we can land it:
Minor: the volume name loses its version so the If you haven't already, come join us on Discord: https://discord.gg/artcraft |
e805805 to
4689f43
Compare
|
Thanks for the review! All three are addressed in the updated branch (now a single commit on top of current
I've applied the same changes to the matching PRs in the other Crafting Apps. And thanks, I'll drop by the Discord! 🤖 Generated with Claude Code |
19e1110 to
c9d83b8
Compare
|
A quick update: I changed the approach again so the suite stays consistent. VectorCraft's version has just landed (storytold/vectorcraft#493). Its maintainers deliberately kept a committed TIFF there, so that the macOS release job, which holds the signing keychain, doesn't run a build-time
I rebuilt the DMG through the exact 🤖 Generated with Claude Code |
The DMG opened as a plain Finder window. It now shows the app icon's figure on the PdfCraft colour, with PdfCraft.app and the Applications link side by side. Same approach as PhotoCraft's and VectorCraft's. - packaging/macos/dmg/: background.svg (source; text outlined, no paper grain, the figure an <image> of assets/app-icon), background.tiff (1x + 2x HiDPI, 16-colour palette, Deflate, sRGB; ~95 KB) and dmg-layout.DS_Store (Finder view settings: window, icon size 128, positions, background). - generate.py writes the TIFF and the layout on any OS, byte-for-byte reproducible, with nothing from the machine that ran it. - package.sh copies them into the staging folder; the image is still built with hdiutil makehybrid. Nothing extra runs in the signing job. - The volume name drops the version: the layout finds the background through an alias that includes the volume name. The DMG file name keeps the version. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
c9d83b8 to
084f763
Compare
|
@echelon, following what you landed in PhotoCraft (storytold/photocraft#1201), I've applied the same thing here: 🤖 Generated with Claude Code |
# Conflicts: # ATTRIBUTION.md
|
Merged — thank you @XusBadia! The branded DMG window looks great, and thanks for doing the whole Crafting Apps suite with each app's own icon and colour. (I merged main in to resolve the ATTRIBUTION.md count.) We'd love to have you in the community Discord if you're not already there: https://discord.gg/artcraft |
macOS DMG: branded window background and icon layout
What
The macOS DMG opened as a plain white Finder window. It now opens like this:
The icon's figure as a cover on the PdfCraft colour field, PdfCraft.app and the
Applicationslink side by side on Paper, and a small PdfCraft-specific touch: the arrow and the mono line under the title come from the app's craft. Ink, Paper and the app colour only; Inter and JetBrains Mono.How
Same approach as PhotoCraft's and VectorCraft's, which have landed (storytold/photocraft#1201, storytold/vectorcraft#493):
packaging/macos/dmg/background.svg: the source. Its text is outlined, so rendering it needs no fonts, and the figure is an<image>of the existing icon inassets/app-icon/.background.tiff: 1x 660×400 + 2x 1320×800 in one HiDPI TIFF (16-colour palette, Deflate, sRGB; ~95 KB, no paper grain), as PhotoCraft's.dmg-layout.DS_Store: Finder's view settings (window 660×400 content, icon size 128, PdfCraft.app at (326, 205), Applications at (574, 205), the background). It's named so it isn't mistaken for, or ignored like, a Finder-generated.DS_Store.generate.py: writes both from the SVG on any OS (pip install 'pillow>=12' ds_store==1.3.3 mac_alias==2.2.3, resvg on PATH). The output is byte-for-byte reproducible and carries nothing from the machine that ran it: no paths, users, disk names or volume UUIDs.package.shcopies the TIFF and the layout into the staging folder. The image is still built withhdiutil makehybrid, and nothing extra runs in the signing job.One behaviour change: the volume name drops the version
.DS_Storepoints at the background through an alias that includes the volume name. WithPdfCraft <version>Finder kept the window and icon positions but lost the background (tested). So the mounted volume is now calledPdfCraft; the DMG file name still carries the version.Tested
package.shsteps (staging folder,makehybrid, UDZO) around a stubPdfCraft.appwith the real icon, mounted it and opened it in Finder on macOS: the screenshot above is that DMG.shellcheckclean;cargo xtask assetspasses where the repo has it;generate.pyreproduces the committed files byte for byte (6 runs).Across the suite
Matching PRs for every Crafting App, same layout, each with its own figure and colour:
🤖 Generated with Claude Code