mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-13 06:20:02 -04:00
dev: add codespace basic setup script
This commit is contained in:
parent
cd8495b7ae
commit
9166fed573
1 changed files with 13 additions and 0 deletions
13
codespace-basic-setup.sh
Normal file
13
codespace-basic-setup.sh
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
|
||||||
|
source "$HOME/.cargo/env" # to import rustup in current shell
|
||||||
|
pnpm i
|
||||||
|
cargo install wasm-bindgen-cli
|
||||||
|
VER=$(curl --silent -qI https://github.com/WebAssembly/binaryen/releases/latest | awk -F '/' '/^location/ {print substr($NF, 1, length($NF)-1)}'); \
|
||||||
|
curl -LO https://github.com/WebAssembly/binaryen/releases/download/$VER/binaryen-${VER}-x86_64-linux.tar.gz
|
||||||
|
tar xvf binaryen-${VER}-x86_64-linux.tar.gz
|
||||||
|
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}
|
||||||
|
pnpm rewriter:build
|
||||||
|
pnpm build
|
Loading…
Add table
Add a link
Reference in a new issue