item
for item in download_finder.items
if (
- item["href"][item["href"].rfind("/"):].startswith("/materialgram-")
- and item["href"].endswith(".tar.gz")
+ item["href"][item["href"].rfind("/"):].startswith(
+ "/materialgram-"
+ )
+ and item["href"].endswith(".tar.zst")
)
)
else:
assert m.hexdigest() == hexdigest
app_dir = cls.BIN_PATH.parents[2]
app_dir.mkdir(0o755, parents=True, exist_ok=True)
- run(["tar", "xz", "-C", str(app_dir)], input=content)
+ run(["tar", "x", "--zstd", "-C", str(app_dir)], input=content)
desktop_file_path = cls.get_desktop_file_path()
with desktop_file_path.open("rt") as fh:
desktop_file = fh.read()