mirror of
https://github.com/moziar/obsidian-external-links-icon.git
synced 2026-07-22 06:45:34 +00:00
chore: only update version when minAppVersion changes
This commit is contained in:
parent
44f5888e4f
commit
1b4a2cdb60
1 changed files with 6 additions and 2 deletions
|
|
@ -15,5 +15,9 @@ if (existsSync("manifest-beta.json")) {
|
|||
}
|
||||
|
||||
let versions = JSON.parse(readFileSync("versions.json", "utf8"));
|
||||
versions[targetVersion] = minAppVersion;
|
||||
writeFileSync("versions.json", JSON.stringify(versions, null, "\t"));
|
||||
// Only update versions.json when minAppVersion changes
|
||||
const latestVersion = Object.keys(versions).sort().pop();
|
||||
if (!latestVersion || versions[latestVersion] !== minAppVersion) {
|
||||
versions[targetVersion] = minAppVersion;
|
||||
writeFileSync("versions.json", JSON.stringify(versions, null, "\t"));
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue