gpt4 book ai didi

node.js - Electron-Builder:在MacOS上使用松鼠构建Windows安装程序失败

转载 作者:行者123 更新时间:2023-12-03 12:28:17 25 4
gpt4 key购买 nike

我一直在寻找在松鼠的MacOS上构建Windows安装程序的解决方案,但是没有任何运气。

我已经通过终端成功安装了mono。
版本6.4.0.198

版本:
electron: ^4.2.5
electron-builder: ^20.41.0
electron-builder-squirrel-windows: ^20.44.0

我运行命令npm run build:win,打包后出现此错误

Error: Exit code: 255. Command failed: mono /Users/admin/Library/Caches/electron-builder/Squirrel.Windows/Squirrel.Windows-1.9.0/Update-Mono.exe --releasify /Users/admin/Desktop/myTestBuild/dist/squirrel-windows/mytestbuild-1.0.0-full.nupkg --releaseDir /Users/admin/Desktop/myTestBuild/dist/squirrel-windows 2019-10-05 18:55:36> Unhandled exception: System.ComponentModel.DataAnnotations.ValidationException: Description is required. at NuGet.Manifest.Validate (NuGet.Manifest manifest) [0x000b1] in <64ead1da9ab54e29ae45ecd50faea709>:0 at NuGet.Manifest.ReadFrom (System.IO.Stream stream, NuGet.IPropertyProvider propertyProvider, System.Boolean validateSchema) [0x0007b] in <64ead1da9ab54e29ae45ecd50faea709>:0 at NuGet.Manifest.ReadFrom (System.IO.Stream stream, System.Boolean validateSchema) [0x00006] in <64ead1da9ab54e29ae45ecd50faea709>:0 at NuGet.LocalPackage.ReadManifest (System.IO.Stream manifestStream) [0x00000] in <64ead1da9ab54e29ae45ecd50faea709>:0 at NuGet.ZipPackage.EnsureManifest () [0x00050] in <64ead1da9ab54e29ae45ecd50faea709>:0 at NuGet.ZipPackage..ctor (System.String filePath, System.Boolean enableCaching) [0x00049] in <64ead1da9ab54e29ae45ecd50faea709>:0 at NuGet.ZipPackage..ctor (System.String filePath) [0x00000] in <64ead1da9ab54e29ae45ecd50faea709>:0 at Squirrel.Update.Program.ReleasifyElectron (System.String package, System.String targetDir, System.String baseUrl) [0x0000d] in <64ead1da9ab54e29ae45ecd50faea709>:0



希望有人能帮助我,度过愉快的一天。

最佳答案

终于找到了解决方案!

您在"description"中的package.json不能为空。这就是为什么它说

Description is required. at NuGet.Manifest.Validate........



绝对应该将其添加到“Electron 制造商”和/或“Electron 制造商”松鼠窗的文档中。

关于node.js - Electron-Builder:在MacOS上使用松鼠构建Windows安装程序失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58250567/

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