mirror of
https://github.com/Equicord/Equicord.git
synced 2025-01-31 03:33:36 -05:00
Revert "scripts(build): don't do vesktop"
This reverts commit 3661c75cc2
.
This commit is contained in:
parent
39d6e1a5bb
commit
3b1926e1d6
1 changed files with 59 additions and 0 deletions
|
@ -158,6 +158,59 @@ await Promise.all([
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
|
|
||||||
|
// Vencord Desktop main & renderer & preload
|
||||||
|
esbuild.build({
|
||||||
|
...nodeCommonOpts,
|
||||||
|
entryPoints: [join(dirname(fileURLToPath(import.meta.url)), "../../src/main/index.ts")],
|
||||||
|
outfile: "dist/vesktop/main.js",
|
||||||
|
footer: { js: "//# sourceURL=VencordMain\n" + sourceMapFooter("main") },
|
||||||
|
sourcemap,
|
||||||
|
define: {
|
||||||
|
...defines,
|
||||||
|
IS_DISCORD_DESKTOP: "false",
|
||||||
|
IS_VESKTOP: "true",
|
||||||
|
IS_EQUIBOP: "false"
|
||||||
|
},
|
||||||
|
plugins: [
|
||||||
|
...nodeCommonOpts.plugins,
|
||||||
|
globNativesPlugin
|
||||||
|
]
|
||||||
|
}),
|
||||||
|
esbuild.build({
|
||||||
|
...commonOpts,
|
||||||
|
entryPoints: [join(dirname(fileURLToPath(import.meta.url)), "../../src/Vencord.ts")],
|
||||||
|
outfile: "dist/vencordDesktopRenderer.js",
|
||||||
|
format: "iife",
|
||||||
|
target: ["esnext"],
|
||||||
|
footer: { js: "//# sourceURL=VencordRenderer\n" + sourceMapFooter("renderer") },
|
||||||
|
globalName: "Vencord",
|
||||||
|
sourcemap,
|
||||||
|
plugins: [
|
||||||
|
globPlugins("vencordDesktop"),
|
||||||
|
globPlugins("equicordDesktop"),
|
||||||
|
...commonOpts.plugins
|
||||||
|
],
|
||||||
|
define: {
|
||||||
|
...defines,
|
||||||
|
IS_DISCORD_DESKTOP: "false",
|
||||||
|
IS_VESKTOP: "true",
|
||||||
|
IS_EQUIBOP: "false"
|
||||||
|
}
|
||||||
|
}),
|
||||||
|
esbuild.build({
|
||||||
|
...nodeCommonOpts,
|
||||||
|
entryPoints: [join(dirname(fileURLToPath(import.meta.url)), "../../src/preload.ts")],
|
||||||
|
outfile: "dist/vesktop/preload.js",
|
||||||
|
footer: { js: "//# sourceURL=VencordPreload\n" + sourceMapFooter("preload") },
|
||||||
|
sourcemap,
|
||||||
|
define: {
|
||||||
|
...defines,
|
||||||
|
IS_DISCORD_DESKTOP: "false",
|
||||||
|
IS_VESKTOP: "true",
|
||||||
|
IS_EQUIBOP: "false"
|
||||||
|
}
|
||||||
|
}),
|
||||||
|
|
||||||
// Equicord Desktop main & renderer & preload
|
// Equicord Desktop main & renderer & preload
|
||||||
esbuild.build({
|
esbuild.build({
|
||||||
...nodeCommonOpts,
|
...nodeCommonOpts,
|
||||||
|
@ -186,6 +239,7 @@ await Promise.all([
|
||||||
globalName: "Vencord",
|
globalName: "Vencord",
|
||||||
sourcemap,
|
sourcemap,
|
||||||
plugins: [
|
plugins: [
|
||||||
|
globPlugins("vencordDesktop"),
|
||||||
globPlugins("equicordDesktop"),
|
globPlugins("equicordDesktop"),
|
||||||
...commonOpts.plugins
|
...commonOpts.plugins
|
||||||
],
|
],
|
||||||
|
@ -222,6 +276,10 @@ await Promise.all([
|
||||||
name: "equicord",
|
name: "equicord",
|
||||||
main: "patcher.js"
|
main: "patcher.js"
|
||||||
})),
|
})),
|
||||||
|
writeFile("dist/vesktop/package.json", JSON.stringify({
|
||||||
|
name: "equicord",
|
||||||
|
main: "main.js"
|
||||||
|
})),
|
||||||
writeFile("dist/equibop/package.json", JSON.stringify({
|
writeFile("dist/equibop/package.json", JSON.stringify({
|
||||||
name: "equicord",
|
name: "equicord",
|
||||||
main: "main.js"
|
main: "main.js"
|
||||||
|
@ -231,4 +289,5 @@ await Promise.all([
|
||||||
await Promise.all([
|
await Promise.all([
|
||||||
createPackage("dist/desktop", "dist/desktop.asar"),
|
createPackage("dist/desktop", "dist/desktop.asar"),
|
||||||
createPackage("dist/equibop", "dist/equibop.asar"),
|
createPackage("dist/equibop", "dist/equibop.asar"),
|
||||||
|
createPackage("dist/vesktop", "dist/vesktop.asar")
|
||||||
]);
|
]);
|
||||||
|
|
Loading…
Reference in a new issue