Skip to content

Commit

Permalink
Auto Updater fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Thedogecraft committed Jan 5, 2024
1 parent a776aa5 commit 65e0f55
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
5 changes: 3 additions & 2 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down Expand Up @@ -204,7 +205,7 @@ function runBatFile(filePath) {
return;
}
console.log(`Command output: ${stdout}`);
},
}
);
} else {
// Handle for other operating systems if needed
Expand Down
18 changes: 10 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "sparkle",
"main": "main.js",
"version": "1.0.6",
"version": "1.0.7",
"author": "The Parcoil network",
"scripts": {
"start": "electron .",
Expand All @@ -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",
Expand All @@ -34,12 +42,6 @@
"files": [
"assets/**/*",
"**/*"
],
"publish": {
"provider": "github",
"owner": "Parcoil",
"repo": "Sparkle",
"releaseType": "release"
}
]
}
}

0 comments on commit 65e0f55

Please sign in to comment.