mirror of
https://github.com/Equicord/Equicord.git
synced 2025-05-11 18:05:37 +02:00
build: Add metadata header to all bundles
This commit is contained in:
parent
0af4579204
commit
a13c0df1cd
3 changed files with 11 additions and 12 deletions
|
@ -19,7 +19,7 @@
|
|||
|
||||
import esbuild from "esbuild";
|
||||
|
||||
import { commonOpts, gitHash, globPlugins, isStandalone, watch } from "./common.mjs";
|
||||
import { commonOpts, globPlugins, isStandalone, watch } from "./common.mjs";
|
||||
|
||||
const defines = {
|
||||
IS_STANDALONE: isStandalone,
|
||||
|
@ -30,12 +30,6 @@ if (defines.IS_STANDALONE === "false")
|
|||
// for the specific platform we're on
|
||||
defines["process.platform"] = JSON.stringify(process.platform);
|
||||
|
||||
const header = `
|
||||
// Vencord ${gitHash}
|
||||
// Standalone: ${defines.IS_STANDALONE}
|
||||
// Platform: ${defines["process.platform"] || "Universal"}
|
||||
`.trim();
|
||||
|
||||
/**
|
||||
* @type {esbuild.BuildOptions}
|
||||
*/
|
||||
|
@ -48,9 +42,6 @@ const nodeCommonOpts = {
|
|||
bundle: true,
|
||||
external: ["electron", ...commonOpts.external],
|
||||
define: defines,
|
||||
banner: {
|
||||
js: header
|
||||
}
|
||||
};
|
||||
|
||||
await Promise.all([
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue