Commit cd3b4184 authored by Éloïs's avatar Éloïs

Merge branch 'build_script_enh' into dev

parents 53af8359 9846adab
#!/bin/sh
cd neon
if [ -z "${DUNITER_FAST_BUILD}" ]
then
if [ -e "${HOME}/.cargo/bin/rustup" ]
then
if [ -z "${DUNITER_FAST_BUILD}" ]; then
if [ "$(command -v rustup)" ]; then
rustup update stable
else
elif [ ! "$(command -v cargo)" ]; then
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
export PATH="$HOME/.cargo/bin:$PATH"
fi
rustup show
rustc --version
cargo --version
else
echo "WARNING: you have disabled the automatic update of Rust, remember to update Rust regularly with command \"rustup update\"."
fi
if [ "${NEON_BUILD_RELEASE}" = "true" ] || [ "${NODE_ENV}" = "production" ]
then
neon build --release
rustc --version
cargo --version
cd neon
if [ "${NEON_BUILD_RELEASE}" = "true" ] || [ "${NODE_ENV}" = "production" ]; then
neon build --release
else
neon build
fi
cd ..
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment