File tree Expand file tree Collapse file tree 1 file changed +20
-6
lines changed Expand file tree Collapse file tree 1 file changed +20
-6
lines changed Original file line number Diff line number Diff line change 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" )
You can’t perform that action at this time.
0 commit comments