1
0
mirror of https://github.com/kkapsner/CanvasBlocker synced 2024-12-22 12:50:36 +01:00

Enable multiple alpha versions per day

This commit is contained in:
kkapsner 2023-04-19 14:48:47 +02:00
parent 4ce2f98b10
commit 114b109340

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){