Patch pro Onikakushi, vývojové prostředí
This commit is contained in:
32
build.py
32
build.py
@@ -258,22 +258,24 @@ def check_7z():
|
||||
print(">>>> ERROR: Can't find 7zip as '7z' or '7za', even after downloading it!")
|
||||
print("Try running this script again. If it still fails, report this issue to 07th-mod")
|
||||
|
||||
# Check that 7zip is 64-bit
|
||||
seven_zip_bitness = None
|
||||
seven_zip_info = subprocess.check_output(Globals.SEVEN_ZIP_EXECUTABLE, text=True)
|
||||
for line in seven_zip_info.splitlines():
|
||||
if line.strip().startswith('7-Zip'):
|
||||
if 'x64' in line:
|
||||
seven_zip_bitness = 64
|
||||
elif 'x86' in line:
|
||||
seven_zip_bitness = 32
|
||||
break
|
||||
### Nobody uses 32-bit systems in {CURRENT_YEAR}.
|
||||
### Also this breaks on ARM
|
||||
|
||||
if seven_zip_bitness == 64:
|
||||
print("7zip is 64-bit - OK")
|
||||
else:
|
||||
print(f">>>> ERROR: Unacceptable 7zip bitness '{seven_zip_bitness}' - need 64 bit.\n\n Please make sure your 7zip is 64-bit, or manually edit this script to use 128mb 7z dictionary size")
|
||||
exit(-1)
|
||||
# Check that 7zip is 64-bit
|
||||
# seven_zip_bitness = None
|
||||
# seven_zip_info = subprocess.check_output(Globals.SEVEN_ZIP_EXECUTABLE, text=True)
|
||||
# for line in seven_zip_info.splitlines():
|
||||
# if line.strip().startswith('7-Zip'):
|
||||
# if 'x64' in line:
|
||||
# seven_zip_bitness = 64
|
||||
# elif 'x86' in line:
|
||||
# seven_zip_bitness = 32
|
||||
# break
|
||||
# if seven_zip_bitness == 64:
|
||||
# print("7zip is 64-bit - OK")
|
||||
# else:
|
||||
# print(f">>>> ERROR: Unacceptable 7zip bitness '{seven_zip_bitness}' - need 64 bit.\n\n Please make sure your 7zip is 64-bit, or manually edit this script to use 128mb 7z dictionary size")
|
||||
# exit(-1)
|
||||
|
||||
class LastModifiedManager:
|
||||
savePath = 'lastModified.json'
|
||||
|
||||
Reference in New Issue
Block a user