我正在尝试在远程Cent OS服务器上设置构建并且遇到错误。我安装了wine,但由于服务器具有64位体系结构,wine命令为wine64
,而不仅仅是wine
。每次我尝试进行Windows构建时,都会出现Could not find "wine" on your system... Make sure that the "wine" executable is in your PATH.
错误。似乎它正在尝试执行“wine”命令,但我改为“wine64”,根据各种指南,它没关系。别名没有帮助。
有人可以建议我如何解决这个问题吗?
感谢。
答案 0 :(得分:1)
我遇到了同样的错误:
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
答案 1 :(得分:0)
事实证明,我只构建了64位版本,但我也必须构建和安装32位版本。尽管编译和安装警告说缺少一些32位的东西,但电子构建似乎没问题并且工作正常。
我终于遵循的教程is here。