簡體   English   中英

使用電子打包器在 Cent OS 64 位上的電子應用程序的 Windows 構建失敗並顯示錯誤

[英]Windows builds of an Electron app on Cent OS 64 bit with electron-packager fails with error

我正在嘗試在遠程 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”,並且根據各種指南,沒關系。 制作別名沒有幫助。 有人可以建議我如何解決這個問題嗎?

謝謝。

我遇到了同樣的錯誤:

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/

事實證明,我只構建了 64 位版本,但我還必須構建和安裝 32 位版本。 盡管編譯和安裝伴隨着缺少某些 32 位內容的警告,但電子構建似乎沒問題並且工作正常。

我最終遵循的教程是here

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM