Fix Dir Name

This commit is contained in:
thororen1234 2024-07-25 10:20:40 -04:00
parent fe9aec0a80
commit acd6e27d5f

View file

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