Skip to content

Commit

Permalink
Added timestamp for beta versions
Browse files Browse the repository at this point in the history
  • Loading branch information
modos189 committed Jun 20, 2024
1 parent abb6a2e commit c26efe8
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions vue.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,17 @@ const manifest_transformer = (manifest) => {
"assets/icons/96/icon-beta.png";
manifest.icons["48"] = "assets/icons/48/icon-beta.png";
manifest.icons["128"] = "assets/icons/128/icon-beta.png";

let currentDate = new Date();
let year = currentDate.getFullYear();
let month = String(currentDate.getMonth() + 1).padStart(2, "0");
let day = String(currentDate.getDate()).padStart(2, "0");
let hours = String(currentDate.getHours()).padStart(2, "0");
let minutes = String(currentDate.getMinutes()).padStart(2, "0");
let seconds = String(currentDate.getSeconds()).padStart(2, "0");

let formattedDate = `${year}${month}${day}.${hours}${minutes}${seconds}`;
manifest.version = `${manifest.version}.${formattedDate}`;
}

if (manifest_version === "2") {
Expand Down

0 comments on commit c26efe8

Please sign in to comment.