mirror of
https://github.com/GrapheneOS/matrix.grapheneos.org.git
synced 2025-01-30 09:03:38 -05:00
brotli keeps source files by default
This commit is contained in:
parent
d5ed786d2a
commit
5fe0978ef2
@ -26,11 +26,6 @@ rm -rf static-tmp
|
|||||||
cp -a /usr/share/webapps/element static-tmp
|
cp -a /usr/share/webapps/element static-tmp
|
||||||
cp --remove-destination webapps/element/config.json static-tmp/config.json
|
cp --remove-destination webapps/element/config.json static-tmp/config.json
|
||||||
|
|
||||||
brotli_k() {
|
|
||||||
brotli -k "$@"
|
|
||||||
}
|
|
||||||
export -f brotli_k
|
|
||||||
|
|
||||||
zopfli_preserve_time() {
|
zopfli_preserve_time() {
|
||||||
zopfli "$1"
|
zopfli "$1"
|
||||||
touch -r "$1" "$1.gz"
|
touch -r "$1" "$1.gz"
|
||||||
@ -38,4 +33,4 @@ zopfli_preserve_time() {
|
|||||||
export -f zopfli_preserve_time
|
export -f zopfli_preserve_time
|
||||||
|
|
||||||
find static-tmp -regex '.+\.\(css\|html\|ico\|js\|json\|map\|svg\|txt\|wasm\|xml\)' |
|
find static-tmp -regex '.+\.\(css\|html\|ico\|js\|json\|map\|svg\|txt\|wasm\|xml\)' |
|
||||||
parallel -q ::: brotli_k zopfli_preserve_time :::: -
|
parallel -q ::: brotli zopfli_preserve_time :::: -
|
||||||
|
Loading…
x
Reference in New Issue
Block a user