Skip to content

Support single-arch mac layouts in DMG postprocess#75

Merged
jsgrrchg merged 3 commits into
jsgrrchg:mainfrom
spamsch:build/postprocess-mac-single-arch
May 11, 2026
Merged

Support single-arch mac layouts in DMG postprocess#75
jsgrrchg merged 3 commits into
jsgrrchg:mainfrom
spamsch:build/postprocess-mac-single-arch

Conversation

@spamsch
Copy link
Copy Markdown
Contributor

@spamsch spamsch commented May 11, 2026

Summary

apps/desktop/scripts/postprocess-macos-dmg.mjs's findPackagedApp only looks for mac-universal/NeverWrite.app and mac/NeverWrite.app. When build-electron-release.mjs is invoked with --arch arm64 (or --arch x64), electron-builder writes the bundle under mac-arm64/ or mac-x64/ instead, and the postprocess step fails with:

Error: Could not find packaged NeverWrite.app in <distDir>

That makes a local single-arch macOS release impossible without bypassing the hardened DMG rebuild and codesign-verify step. Adding the two missing candidates keeps the universal layout working unchanged and unblocks single-arch builds.

Test plan

  • node apps/desktop/scripts/build-electron-release.mjs --platform mac --arch arm64 --unsigned runs through postprocess without error
  • --arch universal build still finds mac-universal/NeverWrite.app (candidate retained)

Simon Pamies and others added 3 commits May 11, 2026 12:18
electron-builder writes the .app under mac-arm64/ or mac-x64/ when
invoked with --arch arm64|x64, but findPackagedApp only knew about
mac-universal/ and mac/. A local arm64 build (or any non-universal
mac release) would fail postprocess with "Could not find packaged
NeverWrite.app".
@jsgrrchg jsgrrchg merged commit e191281 into jsgrrchg:main May 11, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants