Safe 2 update

This commit is contained in:
thororen1234 2024-07-25 10:32:28 -04:00
parent 29fd3ca13f
commit 39cfa3e367
3 changed files with 9 additions and 57 deletions

View file

@ -27,7 +27,11 @@ import { IS_VANILLA } from "./utils/constants";
console.log("[Equicord] Starting up...");
// FIXME: remove at some point
export const isLegacyNonAsarVencord = IS_STANDALONE && !__dirname.endsWith(".asar");
const isLegacyNonAsarVencord = IS_STANDALONE && !__dirname.endsWith(".asar");
if (isLegacyNonAsarVencord) {
console.warn("This is a legacy non asar install! Migrating to asar and restarting...");
require("./updater/http").migrateLegacyToAsar();
}
// Our injector file at app/index.js
const injectorPath = require.main!.filename;