j
This commit is contained in:
parent
2ace675c00
commit
fbfbe33c0a
|
@ -92,7 +92,7 @@ export async function migrateLegacyToAsar() {
|
||||||
try {
|
try {
|
||||||
const data = await get(`https://github.com/${gitRemote}/releases/latest/desktop.asar`);
|
const data = await get(`https://github.com/${gitRemote}/releases/latest/desktop.asar`);
|
||||||
await writeFile(join(__dirname, "../vencord.asar"), data);
|
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();
|
app.relaunch();
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.error("Failed to migrate to asar", e);
|
console.error("Failed to migrate to asar", e);
|
||||||
|
|
Loading…
Reference in a new issue