INNER CODE UNIT · Python
is_project_release_url
CyrilPeng/Venera-Next · update_alt_store.py:10
def is_project_release_url(url):
parsed = urlsplit(url)
return (
parsed.scheme == "https"
and parsed.netloc.lower() == "github.com"
and parsed.path.lower().startswith("/cyrilpeng/venera-next/releases/")
)
def clean_release_history(data):
"""Keep this app's distribution history separate from the original app."""
for app in data.get("apps", []):
if app.get("bundleIdentifier") != "com.github.cyrilpeng.veneranext":
continue
app["versions"] = [
entry for entry in app.get("versions", [])
if is_project_release_url(entry.get("downloadURL", ""))
]