platform/wasm/tools/compress.sh
raw| 1 | #!/bin/bash |
| 2 | |
| 3 | echo BROTLI |
| 4 | test -f dist/mupdf.js.br || brotli dist/mupdf.js |
| 5 | test -f dist/mupdf-wasm.js.br || brotli dist/mupdf-wasm.js |
| 6 | test -f dist/mupdf-wasm.wasm.br || brotli dist/mupdf-wasm.wasm |
| 7 | |
| 8 | echo LICENSE |
| 9 | test -f ../../COPYING && cp -f ../../COPYING LICENSE |
| 10 | test -f ../../LICENSE && cp -f ../../LICENSE LICENSE |
| 11 | true |