diff --git a/apps/remixdesktop/package.json b/apps/remixdesktop/package.json index b4553f1032..b249bda5f3 100644 --- a/apps/remixdesktop/package.json +++ b/apps/remixdesktop/package.json @@ -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", diff --git a/apps/remixdesktop/src/plugins/appUpdater.ts b/apps/remixdesktop/src/plugins/appUpdater.ts index ff1b7fe999..1219d5a891 100644 --- a/apps/remixdesktop/src/plugins/appUpdater.ts +++ b/apps/remixdesktop/src/plugins/appUpdater.ts @@ -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 { - 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 {