1

我正在尝试在远程 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”,根据各种指南,没关系。制作别名没有帮助。有人可以建议我如何解决这个问题吗?

谢谢。

4

2 回答 2

2

我遇到了同样的错误:

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/

于 2020-02-25T17:48:36.940 回答
0

事实证明,我只构建了 64 位版本,但我还必须构建和安装 32 位版本。尽管编译和安装时警告说缺少一些 32 位的东西,但电子构建似乎还可以并且可以正常工作。

我最终遵循的教程是here

于 2016-11-10T15:55:12.750 回答