commit f7faab29688ec07658d6a81ae6bdc9cbbced82d9 parent ec469b0a073465e00f5c39af1690873d6e81d634 Author: Christian Grothoff <christian@grothoff.org> Date: Thu, 3 Jul 2025 11:06:46 +0200 create on-disk compressed versions of the SPA during post-install (#9284) Diffstat:
| M | debian/challenger-httpd.postinst | | | 7 | +++++++ |
1 file changed, 7 insertions(+), 0 deletions(-)
diff --git a/debian/challenger-httpd.postinst b/debian/challenger-httpd.postinst @@ -32,6 +32,13 @@ configure) adduser --quiet --system --ingroup ${_GROUPNAME} --no-create-home --home ${CHALLENGER_HOME} ${_USERNAME} fi + # Try to generate compressed versions of the SPA + for n in index.css index.js main.css index.html + do + TDIR="/usr/share/challenger/" + gzip --best - < "${TDIR}/spa/$n" > "${TDIR}/spa/$n.gz" || true + zstd -19 - < "${TDIR}/spa/$n" > "${TDIR}/spa/$n.zstd" || true + done ;; abort-upgrade | abort-remove | abort-deconfigure) ;;