Fix incorrect decompression of binary files, update previously corrupted Compiler.BIN
This commit is contained in:
1 parent
e1fbc53180
commit
4d1bf28c65
2 files changed
+3
-1
No files matched your search
Binary file not shown.
+3
-1
@@ -45,8 +45,10 @@ def decompress_all_files_in(path):
|
|||||||
decompress_all_files_in(full_path)
|
decompress_all_files_in(full_path)
|
||||||
elif full_path.endswith('.Z'):
|
elif full_path.endswith('.Z'):
|
||||||
decompressed_path = full_path[0:len(full_path)-2]
|
decompressed_path = full_path[0:len(full_path)-2]
|
||||||
|
if full_path.endswith('.BIN.Z'):
|
||||||
|
subprocess.check_call(['./TOSZ', full_path, decompressed_path])
|
||||||
|
else:
|
||||||
subprocess.check_call(['./TOSZ', '-ascii', full_path, decompressed_path])
|
subprocess.check_call(['./TOSZ', '-ascii', full_path, decompressed_path])
|
||||||
os.remove(full_path)
|
|
||||||
|
|
||||||
# Extract TempleOS disk tree
|
# Extract TempleOS disk tree
|
||||||
extract('', OUTPUT_DIR)
|
extract('', OUTPUT_DIR)
|
||||||
|
|||||||
Reference in new issue
Block a user