Skip to content

Commit 72ff228

Browse files
committed
eliteasian you named the zipfile for 0.10.7 wrong
1 parent b9eae67 commit 72ff228

File tree

1 file changed

+20
-6
lines changed

1 file changed

+20
-6
lines changed

yargUpdater.py

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,26 @@
7070
url = f'https://github.com/EliteAsian123/YARG/releases/download/v{lver}/YARG_v{lver}-Windows-x64.zip'
7171
print("downloading from "+url)
7272
print("this can take a while")
73-
if (os.path.exists(f'YARG_v{lver}-Windows-x64.zip') == False):
74-
wget.download(url)
75-
print("downloaded")
76-
if (os.path.exists(f'YARG_v{lver}-Windows-x64.zip') == True):
77-
print("already downloaed")
78-
print("unzipping")
73+
if (lver == '0.10.7'):
74+
print('devs typod file name, patching my code')
75+
url = f'https://github.com/EliteAsian123/YARG/releases/download/v{lver}/YARG_v1.10.7-Windows-x64.zip'
76+
if (lver != '0.10.7'):
77+
if (os.path.exists(f'YARG_v{lver}-Windows-x64.zip') == False):
78+
wget.download(url)
79+
print("downloaded")
80+
if (os.path.exists(f'YARG_v{lver}-Windows-x64.zip') == True):
81+
print("already downloaed")
82+
print("unzipping")
83+
if (lver == '0.10.7'):
84+
if (os.path.exists(f'YARG_v1.10.7-Windows-x64.zip') == False):
85+
wget.download(url)
86+
print("downloaded")
87+
if (os.path.exists(f'YARG_v1.10.7-Windows-x64.zip') == True):
88+
print("already downloaed")
89+
print("unzipping")
90+
if (lver == '0.10.7'):
91+
print('devs typod file name, patching my code pt2')
92+
os.rename(f'{root}/YARG_v1.10.7-Windows-x64.zip', f'{root}/YARG_v{lver}-Windows-x64.zip')
7993
shutil.unpack_archive(f'{root}/YARG_v{lver}-Windows-x64.zip', f'YARG_v{lver}-Windows-x64')
8094
print("unzipped")
8195
print("deleting source .zip")

0 commit comments

Comments
 (0)