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:
parent
4ce2f98b10
commit
114b109340
@ -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){
|
||||
|
Loading…
x
Reference in New Issue
Block a user