chore: update version bump logic

This commit is contained in:
Munckenh 2026-05-13 13:57:06 +08:00
parent d1afdbf34a
commit 95cfab0c2d
No known key found for this signature in database
GPG key ID: 7ECEFB9149BE15D1

View file

@ -9,6 +9,8 @@ manifest.version = targetVersion;
writeFileSync('manifest.json', JSON.stringify(manifest, null, '\t'));
// Update versions.json with target version and minAppVersion from manifest.json
let versions = JSON.parse(readFileSync('versions.json', 'utf8'));
versions[targetVersion] = minAppVersion;
writeFileSync('versions.json', JSON.stringify(versions, null, '\t'));
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'));
}