From e44e2fe070484e06d384a31ef2699c3a2d5d474e Mon Sep 17 00:00:00 2001 From: RaindropsSys Date: Thu, 13 Jun 2024 15:46:03 +0200 Subject: GitHub migration --- buildversion.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 buildversion.js (limited to 'buildversion.js') diff --git a/buildversion.js b/buildversion.js new file mode 100755 index 0000000..72b2d9d --- /dev/null +++ b/buildversion.js @@ -0,0 +1,15 @@ +const isUpdater = !!process.argv[2]; +let baseVersion = "0.0.0"; + +if (isUpdater) { + baseVersion = require('./updater/package.json')['version']; +} else { + baseVersion = require('./package.json')['version']; +} + +process.stdout.write(baseVersion + "-" + new Date().toISOString() + .replaceAll("-", "") + .replaceAll(":", "") + .split(".")[0] + .replace("T", ".") +); -- cgit