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) <noreply@anthropic.com>
This commit is contained in:
David Heinemeier Hansson
2026-08-12 00:18:27 -07:00
co-authored by Claude Opus 5
parent 653b8c36c3
commit bdbf7182c0
2 changed files with 22 additions and 1 deletions
@@ -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')
+7 -1
View File
@@ -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')