INNER CODE UNIT · Python

update_json_file_release

CyrilPeng/Venera-Next · update_alt_store.py:97

def update_json_file_release(json_file, latest_release):
    if not isinstance(latest_release, dict):
        raise RuntimeError("Error getting latest release")

    try:
        with open(json_file, "r", encoding="utf-8-sig") as file:
            data = json.load(file)
    except json.JSONDecodeError as e:
        print(f"Error reading JSON file: {e}")
        data = {"apps": []}
        raise

    app = data["apps"][0]

    full_version = latest_release["tag_name"]
    tag = latest_release["tag_name"]
    version = extract_version(full_version)
    version_date = latest_release["published_at"]

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…