Skip to content

Commit

Permalink
fix: install wasm snip in codespace basic setup
Browse files Browse the repository at this point in the history
  • Loading branch information
Percslol committed Dec 18, 2024
1 parent bb9e134 commit 35231bf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions codespace-basic-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@ rm -rf binaryen-${VER}-x86_64-linux.tar.gz
mv binaryen-${VER}/bin/* ~/.local/bin
mv binaryen-${VER}/lib/* ~/.local/lib
rm -rf binaryen-${VER}
cargo install --git https://github.com/r58playz/wasm-snip
pnpm rewriter:build
pnpm build
4 changes: 2 additions & 2 deletions rewriter/wasm/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ set -euo pipefail
shopt -s inherit_errexit

# Check for cargo and wasm-bindgen
which cargo wasm-bindgen wasm-opt &> /dev/null || {
echo "Please install cargo, wasm-bindgen, and wasm-opt! Exiting..."
which cargo wasm-bindgen wasm-opt wasm-snip &> /dev/null || {
echo "Please install cargo, wasm-bindgen, wasm-opt, and wasm-snip! Exiting..."
exit 1
}

Expand Down

0 comments on commit 35231bf

Please sign in to comment.