INNER CODE UNIT · Python

generate_release_note

cscnk52/wechat-windows-versions · main.py:89

def generate_release_note():
    release_note = (
        f"Version: {state['version']}\n"
        f"Download URL: {state['download_link']}\n"
        f"SHA256: {state['SHA256']}\n"
        f"Last Modified: {state['last_modified']}\n"
    )
    Path("build/releaseNote.md").write_text(release_note, encoding="utf-8")


def main():
    official_time = extract_official_time()
    repo_time = extract_repo_time()
    updated = official_time > repo_time
    if not updated:
        print("version is up to date")
    else:
        state["last_modified"] = str(max(official_time, repo_time))

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…