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); } });