电子更新器 - 数字海洋空间
export default class AppUpdater {
constructor() {
const options = {
provider: 'generic',
url: 'https://example.com/auto-updates'
}
const autoUpdater = new NsisUpdater(options)
autoUpdater.addAuthHeader(`Bearer ${token}`)
autoUpdater.checkForUpdatesAndNotify()
}
}
我正在尝试为我的电子应用进行更新,我想使用数字海洋空间。任何人都可以帮助我将上述代码格式化为数字海洋空间格式。在Electron Updater文档中,没有有关如何连接数字海洋的具体指南。
export default class AppUpdater {
constructor() {
const options = {
provider: 'generic',
url: 'https://example.com/auto-updates'
}
const autoUpdater = new NsisUpdater(options)
autoUpdater.addAuthHeader(`Bearer ${token}`)
autoUpdater.checkForUpdatesAndNotify()
}
}
I am trying to make an updater for my electron app and I want to use Digital Ocean Spaces. Can anybody help me to format the above code to Digital Ocean Spaces format. In Electron Updater docs there is not a specific guide for how to connect Digital Ocean.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
看看此github存储库:
在
“ build”
package.json中的部分中。部分:
Have a look at this GitHub repository:
In the
"build"
section in package.json you needPut your DO_KEY_ID and DO_SECRET_KEY in electron-builder.env which you exclude via neagtive selector, again in the
"build"
section: