This commit is contained in:
Toshit Chawda 2025-01-19 13:41:27 -08:00
parent 365284a1d4
commit addddd18d5
No known key found for this signature in database
GPG key ID: 91480ED99E2B3D9D
3 changed files with 57 additions and 74 deletions

View file

@ -2,13 +2,12 @@
set -euo pipefail
shopt -s inherit_errexit
# Check for cargo and wasm-bindgen
which cargo wasm-bindgen wasm-opt wasm-snip &> /dev/null || {
echo "Please install cargo, wasm-bindgen, wasm-opt, and wasm-snip! Exiting..."
echo "Please install cargo, wasm-bindgen, wasm-opt from https://github.com/WebAssembly/binaryen, and wasm-snip from https://github.com/r58playz/wasm-snip!"
exit 1
}
WBG="wasm-bindgen 0.2.99"
WBG="wasm-bindgen 0.2.100"
if ! [[ "$(wasm-bindgen -V)" =~ ^"$WBG" ]]; then
echo "Incorrect wasm-bindgen-cli version: '$(wasm-bindgen -V)' != '$WBG'"
exit 1