From 65e0f55f02958223f929ce864815322c05afd3ae Mon Sep 17 00:00:00 2001 From: Thedogecraft Date: Fri, 5 Jan 2024 12:49:36 -0800 Subject: [PATCH] Auto Updater fix --- main.js | 5 +++-- package.json | 18 ++++++++++-------- 2 files changed, 13 insertions(+), 10 deletions(-) diff --git a/main.js b/main.js index 06a9f3a..a243267 100644 --- a/main.js +++ b/main.js @@ -9,8 +9,9 @@ const client = new DiscordRPC.Client({ transport: "ipc" }); const clientId = "1188686354490609754"; const { autoUpdater } = require("electron-updater"); -autoUpdater.autoDownload = false; +autoUpdater.autoDownload = true; autoUpdater.autoInstallOnAppQuit = true; + let win; let tray = null; function createWindow() { @@ -204,7 +205,7 @@ function runBatFile(filePath) { return; } console.log(`Command output: ${stdout}`); - }, + } ); } else { // Handle for other operating systems if needed diff --git a/package.json b/package.json index b3213b8..dcaeec0 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "sparkle", "main": "main.js", - "version": "1.0.6", + "version": "1.0.7", "author": "The Parcoil network", "scripts": { "start": "electron .", @@ -22,6 +22,14 @@ "start": "^5.1.0" }, "build": { + "publish": [ + { + "provider": "github", + "owner": "Parcoil", + "repo": "Sparkle", + "releaseType": "release" + } + ], "appId": "com.parcoil.sparkle", "productName": "Sparkle", "target": "NSIS", @@ -34,12 +42,6 @@ "files": [ "assets/**/*", "**/*" - ], - "publish": { - "provider": "github", - "owner": "Parcoil", - "repo": "Sparkle", - "releaseType": "release" - } + ] } }