diff options
Diffstat (limited to 'buildversion.js')
-rwxr-xr-x | buildversion.js | 15 |
1 files changed, 15 insertions, 0 deletions
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", ".") +); |