remove unnecessary zopfli wrapper

The timestamps of the generated static files are no longer used.
This commit is contained in:
Daniel Micay 2024-03-06 15:41:29 -05:00
parent fbf9b23cbf
commit 8b8ce937f6
1 changed files with 1 additions and 7 deletions

View File

@ -26,11 +26,5 @@ rm -rf static-tmp
cp -a /usr/share/webapps/element static-tmp
cp --remove-destination webapps/element/config.json static-tmp/config.json
zopfli_preserve_time() {
zopfli "$1"
touch -r "$1" "$1.gz"
}
export -f zopfli_preserve_time
find static-tmp -regex '.+\.\(css\|html\|ico\|js\|json\|map\|svg\|txt\|wasm\|xml\)' |
parallel -q ::: brotli zopfli_preserve_time :::: -
parallel -q ::: brotli zopfli :::: -