pull/5370/head
filip mertens 9 months ago
parent 12d6870213
commit d4e4924b84
  1. 1
      apps/remixdesktop/package.json
  2. 7
      apps/remixdesktop/src/plugins/appUpdater.ts

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

@ -49,6 +49,7 @@ export class AppUpdaterPlugin extends ElectronBasePlugin {
autoUpdater.on('update-downloaded', (info) => { autoUpdater.on('update-downloaded', (info) => {
console.log('Update downloaded'); console.log('Update downloaded');
this.sendToLog('Update downloaded') this.sendToLog('Update downloaded')
this.sendToLog('processing download... please wait...')
for(const client of this.clients) { for(const client of this.clients) {
client.downloadReady() client.downloadReady()
} }
@ -93,7 +94,11 @@ class AppUpdaterPluginClient extends ElectronBasePluginClient {
} }
async downloadReady(): Promise<void> { 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> { async download(): Promise<void> {

Loading…
Cancel
Save