From 77e2572c5a515db61021cb923319f2b08e223e70 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 15 Apr 2023 21:49:32 +0530 Subject: [PATCH] Optimize social preview images before publishing website --- publish.py | 1 + 1 file changed, 1 insertion(+) diff --git a/publish.py b/publish.py index e1d22564a..20e082760 100755 --- a/publish.py +++ b/publish.py @@ -154,6 +154,7 @@ def run_website(args: Any) -> None: f.write(version) shutil.copy2(os.path.join(docs_dir, 'installer.sh'), publish_dir) os.chdir(os.path.dirname(publish_dir)) + subprocess.check_call(['optipng', '-o7', 'kitty/_images/social_previews/*.png']) subprocess.check_call(['git', 'add', 'kitty']) subprocess.check_call(['git', 'commit', '-m', 'kitty website updates']) subprocess.check_call(['git', 'push'])