From c45d89697af4f2ecd702fb6078d72d125fdbca78 Mon Sep 17 00:00:00 2001 From: Cloudburst <18114966+C10udburst@users.noreply.github.com> Date: Mon, 21 Nov 2022 16:32:56 +0100 Subject: [PATCH] make userscript autoincrement version :trollface: (#233) --- scripts/build/buildWeb.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/build/buildWeb.mjs b/scripts/build/buildWeb.mjs index f5be6510..a4ad87f7 100755 --- a/scripts/build/buildWeb.mjs +++ b/scripts/build/buildWeb.mjs @@ -62,7 +62,7 @@ await Promise.all( ...commonOptions, outfile: "dist/Vencord.user.js", banner: { - js: readFileSync("browser/userscript.meta.js", "utf-8").replace("%version%", PackageJSON.version) + js: readFileSync("browser/userscript.meta.js", "utf-8").replace("%version%", `${PackageJSON.version}.${new Date().getTime()}`) }, footer: { // UserScripts get wrapped in an iife, so define Vencord prop on window that returns our local