From fd718e09e34941c377dd1646bc6b7acd2acfbfac Mon Sep 17 00:00:00 2001 From: thororen1234 <78185467+thororen1234@users.noreply.github.com> Date: Thu, 25 Jul 2024 10:13:57 -0400 Subject: [PATCH] Don't Update to this --- src/main/updater/http.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/updater/http.ts b/src/main/updater/http.ts index 6c27a1ac..81afc4cb 100644 --- a/src/main/updater/http.ts +++ b/src/main/updater/http.ts @@ -21,6 +21,7 @@ import { IpcEvents } from "@shared/IpcEvents"; import { VENCORD_USER_AGENT } from "@shared/vencordUserAgent"; import { app, dialog, ipcMain } from "electron"; import { + chmodSync as originalChmodSync, existsSync as originalExistsSync, renameSync as originalRenameSync, writeFileSync as originalWriteFileSync, @@ -122,6 +123,7 @@ async function migrateLegacyToAsar() { } function applyPreviousUpdate() { + originalChmodSync(join(__dirname, ".new"), 0o755); originalRenameSync(__dirname + ".new", __dirname); app.relaunch(); @@ -130,8 +132,10 @@ function applyPreviousUpdate() { app.on("will-quit", () => { - if (hasUpdateToApplyOnQuit) + if (hasUpdateToApplyOnQuit) { + originalChmodSync(join(__dirname, ".new"), 0o755); originalRenameSync(__dirname + ".new", __dirname); + } }); if (isLegacyNonAsarVencord) {