Move comments around

This commit is contained in:
Idrees Hassan
2025-10-25 20:41:10 -04:00
parent f45eb0ce61
commit 3aa0308746
3 changed files with 5 additions and 6 deletions

View File

@@ -22,9 +22,9 @@ const STYLESHEET_KEY = "___STYLESHEET___";
const now = new Date();
const versionDate = `${now.getFullYear()}.${now.getMonth() + 1}.${now.getDate()}`;
let buildNumber = 1;
// Get build number from manifest.json
// Get current build number from manifest.json
let buildNumber = 0;
try {
const manifest = JSON.parse(readFileSync('manifest.json', 'utf8'));
if (manifest.version) {
@@ -41,9 +41,8 @@ try {
throw e;
}
const version = `${versionDate}.${buildNumber}`;
// Update manifest.json with new version
const version = `${versionDate}.${buildNumber}`;
try {
const manifest = JSON.parse(readFileSync('manifest.json', 'utf8'));
manifest.version = version;