2020-09-29 03:14:18 +08:00
|
|
|
#/bin/bash
|
|
|
|
|
|
|
|
set -ex
|
|
|
|
|
2021-05-29 05:00:38 +08:00
|
|
|
if [ -x "$(command -v sudo)" ]; then
|
2022-06-15 16:02:07 +08:00
|
|
|
sudo apt-get install zlib1g-dev libsqlite3-dev
|
2021-05-29 05:00:38 +08:00
|
|
|
else
|
2022-06-15 16:02:07 +08:00
|
|
|
apt-get install zlib1g-dev libsqlite3-dev
|
2021-05-29 05:00:38 +08:00
|
|
|
fi
|
2022-01-18 03:12:32 +08:00
|
|
|
|
|
|
|
BINARYEN_VERSION=105
|
|
|
|
|
|
|
|
curl -L -v -o binaryen.tar.gz https://github.com/WebAssembly/binaryen/releases/download/version_${BINARYEN_VERSION}/binaryen-version_${BINARYEN_VERSION}-x86_64-linux.tar.gz
|
2020-09-29 03:14:18 +08:00
|
|
|
tar xzvf binaryen.tar.gz
|
2022-01-18 03:12:32 +08:00
|
|
|
cp binaryen-version_${BINARYEN_VERSION}/bin/* /usr/local/bin
|
2022-03-30 18:31:57 +08:00
|
|
|
|
|
|
|
WABT_VERSION=1.0.27
|
|
|
|
|
|
|
|
curl -L -v -o wabt.tar.gz https://github.com/WebAssembly/wabt/releases/download/${WABT_VERSION}/wabt-${WABT_VERSION}-ubuntu.tar.gz
|
|
|
|
tar xzvf wabt.tar.gz
|
|
|
|
cp wabt-${WABT_VERSION}/bin/* /usr/local/bin
|