Files
omarchy-pkgs/pkgbuilds/openai-codex-desktop/.omarchy/patches/max-zstd-compression.patch
T
David Heinemeier HanssonandClaude Opus 5 bdbf7182c0 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>
2026-08-12 00:18:27 -07:00

16 lines
581 B
Diff

--- 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')