Skip to content

Commit 97b5b95

Browse files
author
Nhat Linh Nguyen
committed
fix(update): require user confirmation to download
- What: Disable autoDownload and use checkForUpdates on launch - Why: Avoid downloading updates before user consents - Impact: Updates download only after user action
1 parent b320830 commit 97b5b95

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "labsgen-tiktok",
3-
"version": "0.17.7",
3+
"version": "0.17.8",
44
"description": "TikTok Live Stream Key Generator for OBS from Streamlabs",
55
"main": "dist/main/index.js",
66
"author": "Nhat Linh Nguyen",

src/main/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ const { DBService } = require("../../services/dbService");
1212
const seleniumToken = require("../../services/seleniumToken");
1313
const EncryptionService = require("../../services/encryptionService");
1414

15+
autoUpdater.autoDownload = false;
16+
1517
app.setPath("userData", join(app.getPath("appData"), "Labsgen Tiktok"));
1618
const DEFAULT_PROFILES_DIR = join(app.getPath("userData"), "profiles");
1719

@@ -206,7 +208,7 @@ app.whenReady().then(() => {
206208

207209
if (!is.dev) {
208210
addSystemLog("info", "Auto update check on launch");
209-
autoUpdater.checkForUpdatesAndNotify();
211+
autoUpdater.checkForUpdates();
210212
}
211213
});
212214

0 commit comments

Comments
 (0)