This commit is contained in:
thororen1234 2024-07-19 00:21:15 -04:00
parent 48d275d718
commit f513dd7178
3 changed files with 5 additions and 5 deletions

View file

@ -229,7 +229,7 @@ await Promise.all([
await Promise.all([
createPackage("dist/desktop", "dist/desktop.asar"),
createPackage("dist/vesktop", "dist/vesktop.asar")
createPackage("dist/vesktop", "dist/equibop.asar")
]);
if (existsSync("dist/renderer.js")) {
@ -247,6 +247,6 @@ if (existsSync("dist/renderer.js")) {
await Promise.all([
writeFile("dist/patcher.js", 'require("./desktop.asar")'),
writeFile("dist/vencordDesktopMain.js", 'require("./vesktop.asar")')
writeFile("dist/vencordDesktopMain.js", 'require("./equibop.asar")')
]);
}

View file

@ -17,7 +17,7 @@
*/
export const ASAR_FILE = IS_VESKTOP
? "vesktop.asar"
? "equibop.asar"
: "desktop.asar";
export function serializeErrors(func: (...args: any[]) => any) {

View file

@ -95,8 +95,8 @@ export async function migrateLegacyToAsar() {
const data = await get(`https://github.com/${gitRemote}/releases/latest/download/desktop.asar`);
originalWriteFileSync(join(__dirname, "../vencord.asar"), data);
originalWriteFileSync(__filename, '// Legacy shim for new asar\n\nrequire("../vencord.asar");');
originalWriteFileSync(join(__dirname, "../equicord.asar"), data);
originalWriteFileSync(__filename, '// Legacy shim for new asar\n\nrequire("../equicord.asar");');
app.relaunch();
app.exit();