Publish update

This commit is contained in:
themylogin
2020-05-25 13:50:24 +02:00
parent 242924c26b
commit f87aed39f6
3 changed files with 25 additions and 1 deletions

View File

@@ -0,0 +1,22 @@
# -*- coding=utf-8 -*-
import json
import os
import sys
if __name__ == "__main__":
output, release_file = sys.argv[1:]
with open(os.path.join(output, "manifest.json")) as f:
manifest = json.load(f)
with open(f"{release_file}.sha256") as f:
checksum = f.read().split()[0]
with open(os.path.join(os.path.dirname(release_file), "manifest.json"), "w") as f:
json.dump({
"filename": os.path.basename(release_file),
"version": manifest["version"],
"date": manifest["date"],
"changelog": "",
"checksum": checksum,
}, f)