INNER CODE UNIT · Python

main

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

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))
        extract_installer_version()
        sha256()
        print(state)

        generate_release_note()
        os.rename("build/weixin.exe", f"build/weixin_{state['version']}.exe")

    github_output = os.getenv("GITHUB_OUTPUT")
    if github_output:
        with open(github_output, "a", encoding="utf-8") as f:

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…