Install zd on macOS
Use a release DMG for normal installation. Building from source is useful when testing a change.
Install a release
-
Open the latest GitHub Release.
-
Download the DMG and matching
.sha256file for your Mac.uname -mprintsarm64on Apple Silicon andx86_64on an Intel Mac. -
From the download directory, verify the image before opening it:
shasum -a 256 -c zd_<version>_<architecture>.dmg.sha256 -
Continue only when
shasumreportsOK. If verification fails, delete the download and get the DMG and checksum again from the release. -
Open the DMG, drag
zd.apptoApplications, then openzdfrom Applications.
If macOS says “zd” Not Opened
The v0.2 build is ad-hoc signed and not notarized, so macOS may show the “zd” Not Opened alert
with only Move to Trash and Done. Continue only when you downloaded zd from the official
release and its checksum passed.
- In the alert, choose Done.
- Open Apple menu → System Settings → Privacy & Security.
- Scroll to Security. Find the message that
zdwas blocked, then choose Open Anyway. Apple makes this button available for about an hour after the blocked launch. - When the warning returns, choose Open and authenticate if macOS asks.
macOS saves an exception for this copy of zd, so later launches work normally. You do not need to
disable Gatekeeper or change the global Allow apps downloaded from setting.
If Open Anyway is missing, try to open zd from Applications again, choose Done, then return
to Privacy & Security. On a managed Mac, the control may be unavailable; contact your administrator
instead of weakening the security policy.
Apple documents the same recovery path in Open apps safely on your Mac.
To make the terminal command available, create a link in a directory already on PATH. This command
fails instead of replacing an existing zd entry:
sudo mkdir -p /usr/local/bin
sudo ln -s /Applications/zd.app/Contents/MacOS/zd /usr/local/bin/zd
command -v zd
Install a source build
From a checkout with the supported Node and Rust toolchains installed:
npm ci
npm run package:macos
sudo npm run install:macos
The installer stages a complete replacement app, preserves no stale bundle files, and refuses to
overwrite an unrelated /usr/local/bin/zd command.
Update
For a release build, replace /Applications/zd.app with the app from the new verified DMG. The
existing command link continues to point into it. For a source build, rerun the package and install
commands above.
Remove
Inspect the command link before removing exactly these installed paths:
ls -l /usr/local/bin/zd
sudo rm /usr/local/bin/zd
sudo rm -rf /Applications/zd.app
Your projects, files, and Git worktrees are ordinary filesystem content and are not removed with the
application. Local zd settings and opt-in diagnostic files remain in your user configuration and
data directories unless you remove them separately.