This commit is contained in:
Vendicated 2024-07-19 00:53:40 +02:00
parent 2ace675c00
commit fbfbe33c0a
No known key found for this signature in database
GPG key ID: D66986BAF75ECF18

View file

@ -92,7 +92,7 @@ export async function migrateLegacyToAsar() {
try {
const data = await get(`https://github.com/${gitRemote}/releases/latest/desktop.asar`);
await writeFile(join(__dirname, "../vencord.asar"), data);
await writeFile(__filename, "// Legacy shim for new asar\n\nrequire(\"../vencord.asar\");");
await writeFile(__filename, '// Legacy shim for new asar\n\nrequire("../vencord.asar");');
app.relaunch();
} catch (e) {
console.error("Failed to migrate to asar", e);