mirror of
https://github.com/Equicord/Equicord.git
synced 2025-01-19 05:43:35 -05:00
Don't Update to this
This commit is contained in:
parent
22e78cc832
commit
fd718e09e3
1 changed files with 5 additions and 1 deletions
|
@ -21,6 +21,7 @@ import { IpcEvents } from "@shared/IpcEvents";
|
||||||
import { VENCORD_USER_AGENT } from "@shared/vencordUserAgent";
|
import { VENCORD_USER_AGENT } from "@shared/vencordUserAgent";
|
||||||
import { app, dialog, ipcMain } from "electron";
|
import { app, dialog, ipcMain } from "electron";
|
||||||
import {
|
import {
|
||||||
|
chmodSync as originalChmodSync,
|
||||||
existsSync as originalExistsSync,
|
existsSync as originalExistsSync,
|
||||||
renameSync as originalRenameSync,
|
renameSync as originalRenameSync,
|
||||||
writeFileSync as originalWriteFileSync,
|
writeFileSync as originalWriteFileSync,
|
||||||
|
@ -122,6 +123,7 @@ async function migrateLegacyToAsar() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function applyPreviousUpdate() {
|
function applyPreviousUpdate() {
|
||||||
|
originalChmodSync(join(__dirname, ".new"), 0o755);
|
||||||
originalRenameSync(__dirname + ".new", __dirname);
|
originalRenameSync(__dirname + ".new", __dirname);
|
||||||
|
|
||||||
app.relaunch();
|
app.relaunch();
|
||||||
|
@ -130,8 +132,10 @@ function applyPreviousUpdate() {
|
||||||
|
|
||||||
|
|
||||||
app.on("will-quit", () => {
|
app.on("will-quit", () => {
|
||||||
if (hasUpdateToApplyOnQuit)
|
if (hasUpdateToApplyOnQuit) {
|
||||||
|
originalChmodSync(join(__dirname, ".new"), 0o755);
|
||||||
originalRenameSync(__dirname + ".new", __dirname);
|
originalRenameSync(__dirname + ".new", __dirname);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
if (isLegacyNonAsarVencord) {
|
if (isLegacyNonAsarVencord) {
|
||||||
|
|
Loading…
Reference in a new issue