build: update build script

This commit is contained in:
cxfksword
2023-12-02 16:49:18 +08:00
parent b0e670ed58
commit bfaf9acbdd
3 changed files with 6 additions and 5 deletions

View File

@@ -56,7 +56,7 @@ def main():
raise
# 追加新版本/覆盖旧版本
manifest[0]['versions'] = list(filter(lambda x: x['version'] == version, manifest[0]['versions']))
manifest[0]['versions'] = list(filter(lambda x: x['version'] != f"{version}.0", manifest[0]['versions']))
manifest[0]['versions'].insert(0, generate_version(filepath, version, changelog))
with open('manifest.json', 'w') as f: