gpt4 book ai didi

node.js - 如何在 Electron 生成器中添加发布者

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

我刚接触 Electron ,并试图在 electron-builder 中添加发行商。但是,当它创建安装程序时,会说发布者未知。

我在package.json中的构建obj是

"build": {
"appId": "app.name",
"win": {
"target": "nsis",
"icon": "iconnewa1.ico"
},
"publish": {
"provider": "s3",
"bucket": "bucket_name"
},
"mac": {
"category": "app.category",
"target": [
"zip",
"dmg"
]
},
"nsis": {
"perMachine": true
}
}

请帮我解决一下这个。我已经搜索了整个文档,以在 electron-builder 中添加发布者,但无法获得任何成功。

最佳答案

您必须使用代码签名来避免这种情况:

The regular (and often cheaper) Code Signing Certificate shows a warning during installation that goes away once enough users installed your application and you've built up trust. The EV Certificate has more trust and thus works immediately without any warnings.



https://www.electron.build/code-signing

关于node.js - 如何在 Electron 生成器中添加发布者,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50870703/

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