mirror of
https://github.com/Equicord/Equicord.git
synced 2025-01-18 13:23:28 -05:00
Asar
This commit is contained in:
parent
48d275d718
commit
f513dd7178
3 changed files with 5 additions and 5 deletions
|
@ -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")')
|
||||
]);
|
||||
}
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
*/
|
||||
|
||||
export const ASAR_FILE = IS_VESKTOP
|
||||
? "vesktop.asar"
|
||||
? "equibop.asar"
|
||||
: "desktop.asar";
|
||||
|
||||
export function serializeErrors(func: (...args: any[]) => any) {
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue