forked from Conjure-Tools/unity-runner
allowed any aribtary variance
This commit is contained in:
parent
f8ca547646
commit
2d16290491
@ -104,15 +104,15 @@ def main():
|
|||||||
|
|
||||||
versions={}
|
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:
|
for tag in tags:
|
||||||
matches = pattern.match(tag)
|
matches = pattern.match(tag)
|
||||||
if matches:
|
if matches:
|
||||||
groups = matches.groups()
|
groups = matches.groups()
|
||||||
version = groups[1]
|
version = groups[1]
|
||||||
component = groups[2]
|
component = groups[2]
|
||||||
if groups[3]: # If there's a fourth group
|
if groups[3]: # If there is a variance, then apply it to the component
|
||||||
component = f"{component} ({groups[3].strip('-')})" # Add it in parentheses, removing any leading/trailing dashes
|
component = f"{component} ({groups[3].strip('-')})"
|
||||||
|
|
||||||
if version not in versions:
|
if version not in versions:
|
||||||
versions[version] = {}
|
versions[version] = {}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user