mirror of
https://github.com/Equicord/Equicord.git
synced 2025-02-07 10:43:36 -05:00
compile vesktop asar as well
This commit is contained in:
parent
f513dd7178
commit
e5b8123a3d
2 changed files with 8 additions and 5 deletions
|
@ -229,7 +229,8 @@ await Promise.all([
|
||||||
|
|
||||||
await Promise.all([
|
await Promise.all([
|
||||||
createPackage("dist/desktop", "dist/desktop.asar"),
|
createPackage("dist/desktop", "dist/desktop.asar"),
|
||||||
createPackage("dist/vesktop", "dist/equibop.asar")
|
createPackage("dist/vesktop", "dist/equibop.asar"),
|
||||||
|
createPackage("dist/vesktop", "dist/vesktop.asar")
|
||||||
]);
|
]);
|
||||||
|
|
||||||
if (existsSync("dist/renderer.js")) {
|
if (existsSync("dist/renderer.js")) {
|
||||||
|
@ -247,6 +248,7 @@ if (existsSync("dist/renderer.js")) {
|
||||||
|
|
||||||
await Promise.all([
|
await Promise.all([
|
||||||
writeFile("dist/patcher.js", 'require("./desktop.asar")'),
|
writeFile("dist/patcher.js", 'require("./desktop.asar")'),
|
||||||
writeFile("dist/vencordDesktopMain.js", 'require("./equibop.asar")')
|
writeFile("dist/vencordDesktopMain.js", 'require("./equibop.asar")'),
|
||||||
|
writeFile("dist/vencordDesktopMain.js", 'require("./vesktop.asar")')
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,9 +16,10 @@
|
||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
export const ASAR_FILE = IS_VESKTOP
|
export let ASAR_FILE;
|
||||||
? "equibop.asar"
|
if (IS_VESKTOP) ASAR_FILE = "vesktop.asar";
|
||||||
: "desktop.asar";
|
if (IS_EQUIBOP) ASAR_FILE = "equibop.asar";
|
||||||
|
if (!IS_VESKTOP && !IS_EQUIBOP) "desktop.asar";
|
||||||
|
|
||||||
export function serializeErrors(func: (...args: any[]) => any) {
|
export function serializeErrors(func: (...args: any[]) => any) {
|
||||||
return async function () {
|
return async function () {
|
||||||
|
|
Loading…
Reference in a new issue