signmacosdesktop
filip mertens 9 months ago
parent efe6b88a88
commit 05d2434eba
  1. 1
      apps/remixdesktop/package.json
  2. 7
      apps/remixdesktop/src/plugins/appUpdater.ts

@ -31,7 +31,6 @@
},
"devDependencies": {
"@electron/notarize": "^2.3.0",
"@electron/rebuild": "^3.2.13",
"@types/byline": "^4.2.35",
"@types/express": "^4.17.21",
"cross-env": "^7.0.3",

@ -49,6 +49,7 @@ export class AppUpdaterPlugin extends ElectronBasePlugin {
autoUpdater.on('update-downloaded', (info) => {
console.log('Update downloaded');
this.sendToLog('Update downloaded')
this.sendToLog('processing download... please wait...')
for(const client of this.clients) {
client.downloadReady()
}
@ -93,7 +94,11 @@ class AppUpdaterPluginClient extends ElectronBasePluginClient {
}
async downloadReady(): Promise<void> {
this.emit('downloadReady')
// we do a wait here to make sure that the download is done, it's a bug in electron-updater
setTimeout(() => {
this.emit('downloadReady')
}
, 10000)
}
async download(): Promise<void> {

Loading…
Cancel
Save