GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Replace the pre-built pkg/mac/dmg.DS_Store with a layout generated at build time · Issue #10421 · pgadmin-org/pgadmin4

Replace the pre-built pkg/mac/dmg.DS_Store with a layout generated at build time #10421

New issue
Copy link
New issue
Copy link
Open
Open
Replace the pre-built pkg/mac/dmg.DS_Store with a layout generated at build time#10421
Copy link
Labels
Housekeeping

Description

@dpage
dpage
opened on Sep 15, 2026
Issue body actions

pkg/mac/dmg.DS_Store is a pre-built binary whose embedded aliases are bound to a volume name and to a path on a developer's machine from 2020. The styling it provides will vanish silently if either ever changes, with no build failure to tell us.

What it contains

strings pkg/mac/dmg.DS_Store shows the window and icon view settings that give the DMG its appearance:

.bwspblob → WindowBounds {{200, 280}, {800, 400}}
.icvpblob → backgroundImageAlias, backgroundType, iconSize, gridSpacing, arrangeBy
            /.background/dmg-background.png
            /Volumes/pgAdmin 4

and an alias still pointing at where it was generated:

/Users/<redacted>/git/pgadmin4-nwjs/dist/rw.pgadmin4-4.29-nwjs.dmg

So it was produced by hand against a 4.29 NWjs build and has been carried along ever since. pkg/mac/build-functions.sh copies it into the volume via create-dmg's --add-file, and passes --skip-jenkins so create-dmg does not try to generate the same settings itself through AppleScript, which does not work in a headless session.

Why it is worth fixing

The aliases inside are bound to a volume named pgAdmin 4, which comes from APP_NAME in web/branding.py. Anyone rebranding a build, or changing that string, gets a DMG with no background and default icon placement, and nothing anywhere reports a problem: the file is still copied, create-dmg still succeeds, the build still passes. The failure is entirely cosmetic and entirely invisible to CI, which is the worst combination for noticing it.

It is also opaque. Nobody can review a change to it, nobody can regenerate it without repeating whatever manual steps produced it in 2020, and the only documentation of its origins is an alias to a directory that no longer exists.

Possible approaches

  • Generate the .DS_Store during the build from a checked-in description, using something like dmgbuild, which takes a Python settings file and handles the window and icon layout without Finder automation. That would make the layout reviewable and would remove the binding to a fixed volume name.
  • Failing that, at minimum add a check that the volume name still matches what the .DS_Store expects, so a mismatch fails the build instead of quietly shipping an unstyled image, plus a note in pkg/mac/ recording how the file was made and what it is tied to.

Found while investigating the hdiutil unmount timeouts on hosted macOS runners; unrelated to that problem, but worth not losing.

Activity

  1. dpage
    added
    Housekeeping
    on Sep 15, 2026
  2. dev-hari-prasad commented on Sep 25, 2026

    @dev-hari-prasad
    dev-hari-prasad
    on Sep 25, 2026
    Contributor
    More actions

    One concern with the dmgbuild approach: doesn't it still create a temporary writable image, attach it with hdiutil attach, populate it, and then detach it?

    Looking at dmgbuild's implementation, that's still its workflow. That would seem to reintroduce the exact DiskArbitration/unmount problem that c049488a was intended to eliminate by switching to hdiutil create -srcfolder.

    dmgbuild does have the interesting part we need here it generates .DS_Store using ds_store/mac_alias without Finder automation. So perhaps the safer approach is to reuse that metadata-generation idea while keeping the actual DMG creation on the current mount-free hdiutil create -srcfolder path.

    Otherwise, the pragmatic fallback seems to be:

    1. Add a build-time check that ${APP_NAME} matches the volume name expected by the checked-in .DS_Store, so a rebrand fails loudly instead of silently losing the layout.
    2. Add a README under pkg/mac/ documenting where dmg.DS_Store came from and what it is tied to.

    Did you have a specific offline generator in mind that can produce the required .DS_Store/alias data while still allowing us to keep the hdiutil create -srcfolder workflow?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Housekeeping

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.