allowed any aribtary variance

This commit is contained in:
Lachee 2025-05-07 21:41:31 +10:00
parent f8ca547646
commit 2d16290491
No known key found for this signature in database
GPG Key ID: F1694B0D3BCBCD55

View File

@ -104,15 +104,15 @@ def main():
versions={}
pattern = re.compile(r"(\w+)-(\d+\.\d+\.\d+\w*)-(\w+)(-mono|-il2cpp)?-runner")
pattern = re.compile(r"(\w+)-(\d+\.\d+\.\d+\w*)-(\w+)(-\w+)?-runner")
for tag in tags:
matches = pattern.match(tag)
if matches:
groups = matches.groups()
version = groups[1]
component = groups[2]
if groups[3]: # If there's a fourth group
component = f"{component} ({groups[3].strip('-')})" # Add it in parentheses, removing any leading/trailing dashes
if groups[3]: # If there is a variance, then apply it to the component
component = f"{component} ({groups[3].strip('-')})"
if version not in versions:
versions[version] = {}