pull/5370/head
filip mertens 9 months ago
parent 12d6870213
commit d4e4924b84
  1. 1
      apps/remixdesktop/package.json
  2. 5
      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,8 +94,12 @@ class AppUpdaterPluginClient extends ElectronBasePluginClient {
}
async downloadReady(): Promise<void> {
// 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> {
autoUpdater.downloadUpdate()

Loading…
Cancel
Save