我遇到了同样的错误:
Packaging app for platform win32 x64 using electron v4.2.12
Could not find "wine64" on your system.
Wine is required to use the appCopyright, appVersion, buildVersion, icon, and
win32metadata parameters for Windows targets.
Make sure that the "wine64" executable is in your PATH.
See https://github.com/electron/electron-packager#building-windows-apps-from-non-windows-platforms for details.
在终端中运行这些步骤,让我能够解决这个问题:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew doctor
brew cask install wine-stable
资料来源:https ://www.davidbaumgold.com/tutorials/wine-mac/