Support older zstd versions that don't have output-flat-dir
This commit is contained in:
parent
4655293052
commit
cc2ac9ac2f
@ -269,8 +269,11 @@ def download_and_install_archive(download_url,
|
|||||||
if os.path.exists(next_archive_path) == False:
|
if os.path.exists(next_archive_path) == False:
|
||||||
command = ""
|
command = ""
|
||||||
if archive_path.suffix == '.zst':
|
if archive_path.suffix == '.zst':
|
||||||
command = [str(zstd_exe), "--output-dir-flat", str(exe_install_dir), "-d", str(archive_path)]
|
command = [str(zstd_exe), "-d", "-f", str(archive_path)]
|
||||||
lprint(f'- zstd unzip {label} to: {exe_install_dir}', level=1)
|
lprint(f'- zstd unzip {label}', level=1)
|
||||||
|
|
||||||
|
# zstd extracts to the same directory as the archive
|
||||||
|
next_archive_path = pathlib.Path(download_dir, archive_without_suffix)
|
||||||
else:
|
else:
|
||||||
if not is_windows:
|
if not is_windows:
|
||||||
linux_used_tar = True
|
linux_used_tar = True
|
||||||
|
Loading…
Reference in New Issue
Block a user