Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Sun45 authored Oct 26, 2023
1 parent aeaa99f commit 990c816
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions release.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import os
import json
from pathlib import Path

_MSG_TEMPLATE = """
{msg}
"""

def main():
global _MSG_TEMPLATE
with open("update_log.json", "r", encoding="utf8") as fp:
logjson = json.load(fp)
_MSG_TEMPLATE = _MSG_TEMPLATE.replace(
"{msg}", logjson["content"])

Path("releaselog_cache.txt").write_text(_MSG_TEMPLATE, "utf8")

print(logjson["versionName"])

if __name__ == "__main__":
main()

0 comments on commit 990c816

Please sign in to comment.