From: mar77i Date: Sat, 2 May 2026 11:12:55 +0000 (+0200) Subject: materialgram: fix compression algorithm X-Git-Url: https://git.mar77i.info/?a=commitdiff_plain;h=579d2f858c18171995f73ffdcfdbdb4d4d8ca10a;p=localapps materialgram: fix compression algorithm --- diff --git a/apps/materialgram.py b/apps/materialgram.py index 912d468..e75e53d 100644 --- a/apps/materialgram.py +++ b/apps/materialgram.py @@ -154,8 +154,10 @@ class Materialgram(AppBase): 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: @@ -166,7 +168,7 @@ class Materialgram(AppBase): 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()