From bdbf7182c00dff6e4279aa6e0082aa3346c1c01b Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Tue, 11 Aug 2026 23:51:18 -0700 Subject: [PATCH] Compress openai-codex-desktop with maximum zstd The build image sets COMPRESSZST to zstd's default level, which leaves this 1.3 GB Electron tree at 448 MB -- larger than the 334 MB deb it repackages. Maximum zstd brings it to 323 MB, beating xz on both size and decompression speed, for ~4 extra minutes of build time. Carried as an .omarchy patch so it survives AUR syncs. pkgrel picks up the Omarchy suffix accordingly. Co-Authored-By: Claude Opus 5 (1M context) --- .../.omarchy/patches/max-zstd-compression.patch | 15 +++++++++++++++ pkgbuilds/openai-codex-desktop/PKGBUILD | 8 +++++++- 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 pkgbuilds/openai-codex-desktop/.omarchy/patches/max-zstd-compression.patch diff --git a/pkgbuilds/openai-codex-desktop/.omarchy/patches/max-zstd-compression.patch b/pkgbuilds/openai-codex-desktop/.omarchy/patches/max-zstd-compression.patch new file mode 100644 index 0000000..58bd5a8 --- /dev/null +++ b/pkgbuilds/openai-codex-desktop/.omarchy/patches/max-zstd-compression.patch @@ -0,0 +1,15 @@ +--- a/PKGBUILD ++++ b/PKGBUILD +@@ -55,6 +55,12 @@ + conflicts=('chatgpt') + options=('!debug' '!strip') + ++# Omarchy: the build image compresses with zstd at its default level, which ++# leaves this 1.3 GB Electron tree at 447 MB. Maximum zstd takes it to 322 MB ++# for ~4 extra minutes of build time -- worth it for a package this large that ++# every user re-downloads on each of OpenAI's frequent releases. ++COMPRESSZST=(zstd -c -z -q --ultra -22 --threads=0 -) ++ + _deb_x86_64="chatgpt_${pkgver}_amd64.deb" + _deb_aarch64="chatgpt_${pkgver}_arm64.deb" + source=('chatgpt-launcher.sh') diff --git a/pkgbuilds/openai-codex-desktop/PKGBUILD b/pkgbuilds/openai-codex-desktop/PKGBUILD index 3ae38a0..52393e7 100644 --- a/pkgbuilds/openai-codex-desktop/PKGBUILD +++ b/pkgbuilds/openai-codex-desktop/PKGBUILD @@ -4,7 +4,7 @@ pkgname=openai-codex-desktop pkgver=26.803.81509 -pkgrel=8 +pkgrel=8.1 pkgdesc="Official ChatGPT desktop app with Codex" arch=('x86_64' 'aarch64') url="https://chatgpt.com/codex/" @@ -55,6 +55,12 @@ provides=('chatgpt') conflicts=('chatgpt') options=('!debug' '!strip') +# Omarchy: the build image compresses with zstd at its default level, which +# leaves this 1.3 GB Electron tree at 447 MB. Maximum zstd takes it to 322 MB +# for ~4 extra minutes of build time -- worth it for a package this large that +# every user re-downloads on each of OpenAI's frequent releases. +COMPRESSZST=(zstd -c -z -q --ultra -22 --threads=0 -) + _deb_x86_64="chatgpt_${pkgver}_amd64.deb" _deb_aarch64="chatgpt_${pkgver}_arm64.deb" source=('chatgpt-launcher.sh')