Registry / devops / dmgbuild

dmgbuild

JSON →
library1.6.7pypypiunverified

dmgbuild is a macOS command line utility and Python library for creating disk images (.dmg files). It provides a programmatic way to build DMGs with custom backgrounds, icons, and layout. The current version is 1.6.7, with a stable maintenance release cadence. Only works on macOS.

pip install dmgbuild
INSTALL
IMPORT
SIG · DMGBUILD
D
dmgbuild
devopspythonv1.6.7
Install
1.6s avg
Import
Disk
16MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v1.6.7 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 18.3MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 1.6s · import 0.000s · 19MB
16MB installed
● package 16MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

DMGObject
import dmgbuild
from dmgbuild import DMGObject

Creates a simple disk image containing a single app.

from dmgbuild import DMGObject # Create a DMG with a volume name and files dmg = DMGObject('MyVolume', '/tmp/myapp.app') dmg.build('/tmp/myapp.dmg') print('DMG created at /tmp/myapp.dmg')
dmgbuild --version
Debug
Known issues
gotchadmgbuild only works on macOS. Importing or running on Linux/Windows will raise an OSError about missing Apple APIs.
fix
Use only on macOS; for CI, use macOS runners.
affects: all
breakingVersion 1.6.0 dropped support for Python < 3.10. Users on Python 3.7-3.9 must stay on older versions (e.g., 1.5.2).
fix
Use Python >= 3.10 or pin dmgbuild to <1.6.0.
affects: >=1.6.0
gotchaThe DMGObject constructor has changed signature between versions. In newer versions, the second argument is a list of paths; in older versions it was a single path or different parameters.
fix
Always pass a list (even for one file): DMGObject('Volume', ['/path/to/app'])
affects: >=1.6.0
Upgrade
Version history
1.6.7latest on PyPI · released Jan 15, 2026
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
dmgbuild — pip install dmgbuild · libregistry