gpt4 book ai didi

azure-devops - 使用Azure DevOps构建 Electron 应用程序失败

转载 作者:行者123 更新时间:2023-12-03 12:24:14 27 4
gpt4 key购买 nike

我正在尝试使用Azure DevOps构建Electron应用程序。它失败,并显示以下错误:

Package Electron App for Platform win...
• electron-builder version=21.2.0 os=4.15.0-1052-azure
• artifacts will be published if draft release exists reason=CI detected
• loaded configuration file=/home/vsts/work/1/s/FotoManager/obj/desktop/win/bin/electron-builder.json
• packaging platform=win32 arch=x64 electron=5.0.8 appOutDir=/home/vsts/work/1/s/FotoManager/bin/Desktop/win-unpacked
• downloading url=https://github.com/electron/electron/releases/download/v5.0.8/electron-v5.0.8-win32-x64.zip size=59 MB parts=4
• downloaded url=https://github.com/electron/electron/releases/download/v5.0.8/electron-v5.0.8-win32-x64.zip duration=1.859s
• downloading url=https://github.com/electron-userland/electron-builder-binaries/releases/download/winCodeSign-2.5.0/winCodeSign-2.5.0.7z size=5.6 MB parts=1
• downloaded url=https://github.com/electron-userland/electron-builder-binaries/releases/download/winCodeSign-2.5.0/winCodeSign-2.5.0.7z duration=1.593s
⨯ wine is required, please see https://electron.build/multi-platform-build#linux
/usr/local/lib/node_modules/electron-builder/node_modules/app-builder-bin/linux/x64/app-builder exited with code ERR_ELECTRON_BUILDER_CANNOT_EXECUTE stackTrace=
Error: /usr/local/lib/node_modules/electron-builder/node_modules/app-builder-bin/linux/x64/app-builder exited with code ERR_ELECTRON_BUILDER_CANNOT_EXECUTE
at ChildProcess.childProcess.once.code (/usr/local/lib/node_modules/electron-builder/node_modules/builder-util/src/util.ts:239:14)
at Object.onceWrapper (events.js:286:20)
at ChildProcess.emit (events.js:198:13)
at maybeClose (internal/child_process.js:982:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
From previous event:
at runCallback (timers.js:705:18)
at tryOnImmediate (timers.js:676:5)
at processImmediate (timers.js:658:5)
From previous event:
at WinPackager.signApp (/usr/local/lib/node_modules/electron-builder/node_modules/app-builder-lib/src/winPackager.ts:357:27)
at WinPackager.doPack (/usr/local/lib/node_modules/electron-builder/node_modules/app-builder-lib/src/platformPackager.ts:243:16)
... done

Win10上的本地版本可以正常工作。

这是我的管道YAML: https://github.com/mu88/BlazorFotoManager/blob/master/azure-pipelines.yml

如您所见,我正在按照推荐的 here安装Wine。

任何想法如何解决?

最佳答案

最后,我仅使用Windows VM镜像即可解决该问题。

关于azure-devops - 使用Azure DevOps构建 Electron 应用程序失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57498970/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com