我正在尝试在远程 Cent OS 服务器上设置构建,但遇到错误。我安装了wine,但是由于服务器是64位架构,所以wine命令是wine64
,而不仅仅是wine
。每次我尝试构建 Windows 时,都会收到在您的系统上找不到“wine”...请确保“wine”可执行文件位于您的 PATH 中。
错误。看起来它正在尝试执行“wine”命令,但我有“wine64”,并且根据各种指南,这是可以的。制作别名没有帮助。
有人可以建议我如何解决这个问题吗?
谢谢。
最佳答案
我遇到了同样的错误:
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
关于javascript - 使用 Electron-packager 在 Cent OS 64 位上 Windows 构建 Electron 应用程序失败并出现错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40523221/