Enable multiple alpha versions per day

This commit is contained in:
kkapsner 2023-04-19 14:48:47 +02:00
parent 4ce2f98b10
commit 114b109340
1 changed files with 2 additions and 2 deletions

View File

@ -14,10 +14,10 @@ const args = yargs
const fs = require("fs");
function getAlphaVersion(manifest){
function getAlphaVersion(manifest, useTime){
"use strict";
const now = new Date();
const date = now.toISOString().substring(0, 10).replace(/-/g, "");
const date = now.toISOString().substring(0, useTime? 13: 10).replace(/-/g, "").replace("T", ".");
return manifest.version.replace(/^([\d.]+).*$/, "$1Alpha" + date);
}
function getRCVersion(manifest){