Asar stuff

This commit is contained in:
thororen1234 2024-07-19 16:08:18 -04:00
parent e9ca9303aa
commit bf25521403
3 changed files with 6 additions and 6 deletions

View file

@ -303,8 +303,8 @@ if (existsSync("dist/renderer.js")) {
);
await Promise.all([
writeFile("dist/patcher.js", 'require("./desktop.asar")'),
writeFile("dist/equicordDesktopMain.js", 'require("./equibop.asar")'),
writeFile("dist/vencordDesktopMain.js", 'require("./vesktop.asar")')
writeFile("dist/patcher.js", 'require("./desktop")'),
writeFile("dist/equicordDesktopMain.js", 'require("./equibop")'),
writeFile("dist/vencordDesktopMain.js", 'require("./vesktop")')
]);
}

View file

@ -124,7 +124,7 @@ try {
env: {
...process.env,
EQUICORD_USER_DATA_DIR: BASE_DIR,
EQUICORD_ASAR_FILE: join(BASE_DIR, "dist/desktop.asar"),
EQUICORD_DIRECTORY: join(BASE_DIR, "dist/desktop"),
EQUICORD_DEV_INSTALL: "1"
}
});

View file

@ -19,7 +19,7 @@
import { debounce } from "@shared/debounce";
import { contextBridge, webFrame } from "electron";
import { readFileSync, watch } from "fs";
import { dirname, join } from "path";
import { join } from "path";
import VencordNative from "./VencordNative";
@ -45,7 +45,7 @@ if (location.protocol !== "data:") {
if (IS_DEV) {
// persistent means keep process running if watcher is the only thing still running
// which we obviously don't want
watch(dirname(rendererCss), { persistent: false }, () => {
watch(rendererCss, { persistent: false }, () => {
document.getElementById("vencord-css-core")!.textContent = readFileSync(rendererCss, "utf-8");
});
}