gamja: compress better

This commit is contained in:
Motiejus Jakštys 2024-02-12 18:19:39 +02:00
parent 39eb845316
commit dac9650b65

View File

@ -39,15 +39,15 @@ buildNpmPackage rec {
passthru = { passthru = {
data-compressed = data-compressed =
runCommand "soju-data-compressed" { runCommand "gamja-compressed" {
nativeBuildInputs = [brotli zopfli xorg.lndir];
} '' } ''
mkdir $out mkdir $out
lndir ${gamja}/ $out/ ${xorg.lndir}/bin/lndir ${gamja}/ $out/
find $out \ find $out \
-name '*.css' -or \ -name '*.css' -or \
-name '*.js' -or \ -name '*.js' -or \
-name '*.json' -or \
-name '*.map' -or \ -name '*.map' -or \
-name '*.webmanifest' -or \ -name '*.webmanifest' -or \
-name '*.html' | \ -name '*.html' | \