aboutsummaryrefslogtreecommitdiff
path: root/scripts/build/buildWeb.mjs
diff options
context:
space:
mode:
authorSefa Eyeoglu <contact@scrumplex.net>2023-08-25 14:15:02 +0200
committerGitHub <noreply@github.com>2023-08-25 14:15:02 +0200
commit714d87241ceb07dfd6c08cee55347a937e97a279 (patch)
treee65caebca7a459c3bd29e69573fcac9398132218 /scripts/build/buildWeb.mjs
parentf628aa7a70fdf33757995836bca90dcd4d759d37 (diff)
downloadVencord-714d87241ceb07dfd6c08cee55347a937e97a279.tar.gz
Vencord-714d87241ceb07dfd6c08cee55347a937e97a279.tar.bz2
Vencord-714d87241ceb07dfd6c08cee55347a937e97a279.zip
build: allow overriding git details & disabling updating (#1677)
Co-authored-by: V <vendicated@riseup.net>
Diffstat (limited to 'scripts/build/buildWeb.mjs')
-rw-r--r--scripts/build/buildWeb.mjs5
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/build/buildWeb.mjs b/scripts/build/buildWeb.mjs
index 434d176..aab82d0 100644
--- a/scripts/build/buildWeb.mjs
+++ b/scripts/build/buildWeb.mjs
@@ -24,7 +24,7 @@ import { readFileSync } from "fs";
import { appendFile, mkdir, readFile, rm, writeFile } from "fs/promises";
import { join } from "path";
-import { commonOpts, globPlugins, VERSION, watch } from "./common.mjs";
+import { BUILD_TIMESTAMP, commonOpts, globPlugins, VERSION, watch } from "./common.mjs";
/**
* @type {esbuild.BuildOptions}
@@ -46,8 +46,9 @@ const commonOptions = {
IS_DEV: JSON.stringify(watch),
IS_DISCORD_DESKTOP: "false",
IS_VESKTOP: "false",
+ IS_UPDATER_DISABLED: "true",
VERSION: JSON.stringify(VERSION),
- BUILD_TIMESTAMP: Date.now(),
+ BUILD_TIMESTAMP,
}
};