mirror of
https://github.com/GoogleChromeLabs/squoosh.git
synced 2025-11-13 09:17:20 +00:00
This makes building simpler and allows us to potentially use multithreading version in the future. For now points to a custom fork of OxiPNG that enables WebAssembly support, as PR is still pending review.
23 lines
619 B
Bash
23 lines
619 B
Bash
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
echo "============================================="
|
|
echo "Compiling wasm"
|
|
echo "============================================="
|
|
(
|
|
wasm-pack build
|
|
wasm-strip pkg/oxipng_bg.wasm
|
|
rm pkg/.gitignore
|
|
)
|
|
echo "============================================="
|
|
echo "Compiling wasm done"
|
|
echo "============================================="
|
|
|
|
echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
|
|
echo "Did you update your docker image?"
|
|
echo "Run \`docker pull ubuntu\`"
|
|
echo "Run \`docker pull rust\`"
|
|
echo "Run \`docker build -t squoosh-oxipng .\`"
|
|
echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
|