INNER CODE UNIT · Python

sha256

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

def sha256():
    file_path = Path("build/weixin.exe")
    data = file_path.read_bytes()
    state["SHA256"] = hashlib.sha256(data).hexdigest()


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()

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…