From acd6e27d5f56cc1512c534a82161116829f3836f Mon Sep 17 00:00:00 2001 From: thororen1234 <78185467+thororen1234@users.noreply.github.com> Date: Thu, 25 Jul 2024 10:20:40 -0400 Subject: [PATCH] Fix Dir Name --- src/main/updater/http.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/updater/http.ts b/src/main/updater/http.ts index 85a088da..6103f071 100644 --- a/src/main/updater/http.ts +++ b/src/main/updater/http.ts @@ -123,7 +123,7 @@ async function migrateLegacyToAsar() { } function applyPreviousUpdate() { - originalChmodSync(join(__dirname, ".new"), "777"); + originalChmodSync(__dirname + ".new", "777"); originalRenameSync(__dirname + ".new", __dirname); app.relaunch(); @@ -133,7 +133,7 @@ function applyPreviousUpdate() { app.on("will-quit", () => { if (hasUpdateToApplyOnQuit) { - originalChmodSync(join(__dirname, ".new"), "777"); + originalChmodSync(__dirname + ".new", "777"); originalRenameSync(__dirname + ".new", __dirname); } });