INNER CODE UNIT · Python

latest_release_object

RockxyApp/Rockxy · releases/validate_metadata.py:363

def latest_release_object(data: dict[str, Any]) -> dict[str, Any]:
    release_date = data.get("release_date") or data.get("releaseDateUtc") or data.get("releaseDate")
    return {
        "version": data.get("version"),
        "build": data.get("build"),
        "release_date": release_date,
        "download_url": data.get("download_url") or data.get("downloadUrl"),
        "checksum_sha256": data.get("checksum_sha256") or data.get("checksumSha256"),
        "dmg_length": data.get("dmg_length") or data.get("artifactLength"),
        "sparkle_ed_signature": data.get("sparkle_ed_signature") or data.get("sparkleEdSignature"),
        "release_notes_url": data.get("release_notes_url") or data.get("releaseUrl"),
        "minimum_system_version": data.get("minimum_system_version") or data.get("minimumSystemVersion"),
        "binary_license": data.get("binary_license") or data.get("binaryLicense"),
        "binary_license_url": data.get("binary_license_url") or data.get("binaryLicenseUrl"),
        "community_mode_available_without_purchase": data.get("community_mode_available_without_purchase")
        if "community_mode_available_without_purchase" in data
        else data.get("communityModeAvailableWithoutPurchase"),
        "public_source_edition_url": data.get("public_source_edition_url") or data.get("publicSourceEditionUrl"),

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…