From 1c587cac2f974a98f65b8a1feb584c4082ebb6ec Mon Sep 17 00:00:00 2001 From: Quinn Shanahan Date: Sun, 10 Mar 2024 22:01:03 -0400 Subject: [PATCH] publish --- electron/main/index.ts | 21 --------------------- package.json | 1 + 2 files changed, 1 insertion(+), 21 deletions(-) diff --git a/electron/main/index.ts b/electron/main/index.ts index 29d75d1..b86bb69 100644 --- a/electron/main/index.ts +++ b/electron/main/index.ts @@ -73,27 +73,6 @@ async function createWindow() { autoUpdater.logger.transports.file.level = 'info' await autoUpdater.checkForUpdatesAndNotify() - await autoUpdater.downloadUpdate() - - autoUpdater.on('update-available', () => {}) - autoUpdater.on('update-downloaded', () => { - if (!win) return - - dialog - .showMessageBox(win, { - type: 'question', - buttons: ['Install and Restart', 'Later'], - defaultId: 0, - message: - 'A new update has been downloaded. Would you like to install and restart the app now?', - }) - .then((result) => { - if (result.response === 0) { - autoUpdater.quitAndInstall() - } - }) - .catch(console.error) - }) } // This method will be called when Electron has finished diff --git a/package.json b/package.json index 40b6d8f..c9ed742 100644 --- a/package.json +++ b/package.json @@ -15,6 +15,7 @@ }, "scripts": { "build": "vite build", + "publish": "npx electron-builder --publish always", "dev": "vite", "format": "prettier --write .", "lint": "eslint --cache --cache-location ./node_modules/.cache/eslint .",