mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2025-01-18 09:28:52 +01:00
Enable multiple alpha versions per day
This commit is contained in:
parent
4ce2f98b10
commit
114b109340
@ -14,10 +14,10 @@ const args = yargs
|
|||||||
|
|
||||||
const fs = require("fs");
|
const fs = require("fs");
|
||||||
|
|
||||||
function getAlphaVersion(manifest){
|
function getAlphaVersion(manifest, useTime){
|
||||||
"use strict";
|
"use strict";
|
||||||
const now = new Date();
|
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);
|
return manifest.version.replace(/^([\d.]+).*$/, "$1Alpha" + date);
|
||||||
}
|
}
|
||||||
function getRCVersion(manifest){
|
function getRCVersion(manifest){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user