From 579d2f858c18171995f73ffdcfdbdb4d4d8ca10a Mon Sep 17 00:00:00 2001 From: mar77i Date: Sat, 2 May 2026 13:12:55 +0200 Subject: [PATCH] materialgram: fix compression algorithm --- apps/materialgram.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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() -- 2.54.0