mirror of
https://github.com/GrapheneOS/matrix.grapheneos.org.git
synced 2024-12-18 20:34:39 -05:00
21 lines
500 B
Bash
Executable File
21 lines
500 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -o errexit -o nounset -o pipefail
|
|
shopt -s dotglob extglob globstar
|
|
|
|
export PATH="$PWD/node_modules/.bin:$PATH"
|
|
|
|
rm -rf static_tmp
|
|
cp -a /usr/share/webapps/element static_tmp
|
|
cp --remove-destination webapps/element/config.json static_tmp/config.json
|
|
|
|
cp nginx/nginx.conf nginx.conf.tmp
|
|
|
|
brotli_k() {
|
|
brotli -k "$@"
|
|
}
|
|
export -f brotli_k
|
|
|
|
find static_tmp -regex '.+\.\(css\|html\|ico\|js\|json\|map\|svg\|txt\|webmanifest\|xml\|wasm\)' |
|
|
parallel -q ::: brotli_k zopfli :::: -
|