jsonpath/nodejs/build.sh
2019-05-15 12:12:38 +09:00

10 lines
285 B
Bash
Executable File

#!/bin/bash
if ! [ -x "$(command -v rustc)" ]; then
echo "install rust"
curl https://sh.rustup.rs -sSf > /tmp/rustup.sh
sh /tmp/rustup.sh -y
export PATH="$HOME/.cargo/bin:$PATH"
source "$HOME/.cargo/env"
fi
check-node-version --node '<12.0' && neon build --release