]> git.mar77i.info Git - localapps/commitdiff
materialgram: fix compression algorithm
authormar77i <mar77i@protonmail.ch>
Sat, 2 May 2026 11:12:55 +0000 (13:12 +0200)
committermar77i <mar77i@protonmail.ch>
Sat, 2 May 2026 11:12:55 +0000 (13:12 +0200)
apps/materialgram.py

index 912d46886d3d42de3e57f5d1451ce8c77e0d85da..e75e53d387c7bd4e08007f9b73d81bcd82436615 100644 (file)
@@ -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()