mirror of
https://gitlab.os-k.eu/neox/CNIRevelator.git
synced 2023-08-25 14:03:10 +02:00
Minor changes
This commit is contained in:
parent
df654066a8
commit
84a74f804d
@ -1,2 +1,2 @@
|
|||||||
# ver|url|checksum, and | as separator, one version per ||
|
# ver|url|checksum, and | as separator, one version per ||
|
||||||
3.0.1|https://github.com/neox95/CNIRevelator/releases/download/3.0.1-pre-alpha/CNIRevelator.zip|FIaHzUzgi7Lqmad7md9bzsvbdx4=||
|
3.0.1|https://github.com/neox95/CNIRevelator/releases/download/3.0.1-pre-alpha/CNIRevelator.zip|148687cd4ce08bb2ea99a77b99df5bcecbdb771e||
|
||||||
|
@ -121,6 +121,7 @@ def batch():
|
|||||||
if sum > finalsum:
|
if sum > finalsum:
|
||||||
finalver = ver.copy()
|
finalver = ver.copy()
|
||||||
finalurl = url
|
finalurl = url
|
||||||
|
finalchecksum = checksum
|
||||||
|
|
||||||
if finalver == globs.version:
|
if finalver == globs.version:
|
||||||
logfile.printdbg('The software is already the newer version')
|
logfile.printdbg('The software is already the newer version')
|
||||||
@ -141,8 +142,13 @@ def batch():
|
|||||||
if not data:
|
if not data:
|
||||||
break
|
break
|
||||||
sha1.update(data)
|
sha1.update(data)
|
||||||
|
|
||||||
|
check = sha1.hexdigest()
|
||||||
|
logfile.printdbg("SHA1: {0}".format(check))
|
||||||
|
|
||||||
logfile.printdbg("SHA1: {0}".format(sha1.hexdigest()))
|
if not check == finalchecksum:
|
||||||
|
logfile.printerr("Checksum error")
|
||||||
|
return False
|
||||||
|
|
||||||
# And now unzip and launch
|
# And now unzip and launch
|
||||||
logfile.printdbg("Unzipping the package")
|
logfile.printdbg("Unzipping the package")
|
||||||
@ -150,6 +156,8 @@ def batch():
|
|||||||
zip_ref.extractall(globs.CNIRFolder + '\\..\\CNIRevelator' + str(globs.verstring_full))
|
zip_ref.extractall(globs.CNIRFolder + '\\..\\CNIRevelator' + str(globs.verstring_full))
|
||||||
zip_ref.close()
|
zip_ref.close()
|
||||||
|
|
||||||
|
logfile.printdbg(globs.CNIRFolder + '\\..\\CNIRevelator' + str(globs.verstring_full) + '\\CNIRevelator.exe')
|
||||||
|
|
||||||
args = [globs.CNIRFolder + '\\..\\CNIRevelator' + str(globs.verstring_full) + '\\CNIRevelator.exe', globs.CNIRFolder]
|
args = [globs.CNIRFolder + '\\..\\CNIRevelator' + str(globs.verstring_full) + '\\CNIRevelator.exe', globs.CNIRFolder]
|
||||||
subprocess.run(args)
|
subprocess.run(args)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user