here we go again

This commit is contained in:
windowsboy111
2022-10-31 18:25:03 +08:00
parent 65a42cb647
commit aa6681b086
+1
View File
@@ -8,6 +8,7 @@ REGEX_VER = r'Version:\s*([\.\d]+)\n'
SPEC = f"{NAME}.spec"
LINK = f'https://api.github.com/repos/{REPO}/releases/latest'
ver = requests.get(LINK).json()['tag_name']
ver = ver[1:] # starts with v
with open(SPEC, 'r') as f: