<!-- issue_labeler_regex_version=0 --> <!-- Which version of electron-builder are you using? --> <!-- Please always try to use latest version before reporting any issue. --> * **Electron-Builder Version**: 24.11.0 <!-- Which version of node are you using? --> * **Node Version**: v21.5.0 <!-- Which version of electron are you using? --> <!-- Please verify if the error is electron related before reporting any issues. --> * **Electron Version**: 28.1.3 * **Electron Type (current, beta, nightly)**: current <!-- Which version of electron-updater are you using (if applicable)? --> <!-- For which target are you building for? --> * **Target**: macOS <!-- Enter your issue details below this comment. --> Homebrew's `miniforge` package includes a `codesign`: ``` $ which codesign /opt/homebrew/Caskroom/miniforge/base/bin/codesign ``` Unsurprising this fails when `electron-builder` uses it for code signing. The error message is: ``` The following arguments were not expected: --options --timestamp ``` A fix is to adjust PATH so that `/usr/bin` is ahead of `/opt/homebrew/Caskroom/miniforge/base/bin`.