* Seed repo * Travis matrix for JS & Rust * Update with cleaned latest schnorrkel * Delete node-test.js * Update .gitignore * Update .travis.yml * Update .travis.yml * Update .travis.yml * Update .travis.yml * Update .travis.yml * Update .travis.yml * Update .travis.yml * Update .travis.yml * Update .travis.yml * Update .travis.yml * Update .travis.yml * Update .travis.yml * Update .travis.yml * Update .travis.yml * Update build.sh * Update .travis.yml * Update .travis.yml * Update build.sh * Update build.sh * Update build.sh * Update .travis.yml * Update build.sh * Pull in latest schnorrkel-js fork * Update schnorrkel README as per source * Build via ./test.sh * Move build to deps (only dep install) * Adapt for header * Show build output
37 lines
747 B
Bash
Executable File
37 lines
747 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
PACKAGES=( "schnorrkel" )
|
|
|
|
# install wasm-pack as required
|
|
if ! [ -x "$(command -v wasm-pack)" ]; then
|
|
echo "*** Installing wasm-pack"
|
|
curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
|
|
fi
|
|
|
|
# install binaryen as required
|
|
if [ ! -d "binaryen" ]; then
|
|
echo "*** Installing binaryen"
|
|
git clone --recursive https://github.com/WebAssembly/binaryen.git
|
|
rm -rf binaryen/test
|
|
fi
|
|
|
|
# build wasm2js as required
|
|
# if [ ! -f "binaryen/bin/wasm2js" ]; then
|
|
# echo "*** Building wasm2js"
|
|
# cd binaryen
|
|
# cmake .
|
|
# make wasm2js
|
|
# cd ..
|
|
# fi
|
|
|
|
# build wasm-opt as required
|
|
if [ ! -f "binaryen/bin/wasm-opt" ]; then
|
|
echo "*** Building wasm-opt"
|
|
cd binaryen
|
|
cmake .
|
|
make wasm-opt
|
|
cd ..
|
|
fi
|