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()
}
}
我正试图为我的电子应用程序做一个更新,我想使用数字海洋空间。有人能帮我把上面的代码格式化成数字海洋空间格式吗?在电子更新文档中,没有关于如何连接数字海洋的具体指南。
发布于 2022-05-09 21:48:51
看看这个GitHub存储库:在package.json中的"build"
部分,您需要
"publish": {
"provider": "spaces",
"name": "xxxxxxxxxx",
"region": "nyc3",
"acl": "public-read"
}
将您的DO_KEY_ID和DO_SECRET_KEY放在电子Builder.env中,您可以通过neagtive选择器排除它们,同样在"build"
部分:
"files": [
"!electron-builder.env"
]
https://stackoverflow.com/questions/72176616
复制相似问题