This commit is contained in:
vorotamoroz
2026-05-17 13:13:21 +09:00
parent 6ef866a77c
commit 6a7c987985
6 changed files with 182 additions and 179 deletions

View File

@@ -6,12 +6,12 @@ const targetVersion = process.env.npm_package_version;
const manifest = JSON.parse(readFileSync("manifest.json", "utf8"));
const { minAppVersion } = manifest;
manifest.version = targetVersion;
writeFileSync("manifest.json", JSON.stringify(manifest, null, "\t"));
writeFileSync("manifest.json", JSON.stringify(manifest, null, 4));
// update versions.json with target version and minAppVersion from manifest.json
// but only if the target version is not already in versions.json
const versions = JSON.parse(readFileSync('versions.json', 'utf8'));
if (!Object.values(versions).includes(minAppVersion)) {
versions[targetVersion] = minAppVersion;
writeFileSync('versions.json', JSON.stringify(versions, null, '\t'));
writeFileSync('versions.json', JSON.stringify(versions, null, 4));
}