Skip to content
Snippets Groups Projects

Improve build script

Merged Moul requested to merge build_script_enh into dev
1 file
+ 7
12
Compare changes
  • Side-by-side
  • Inline
+ 7
12
#!/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
@@ -19,11 +15,10 @@ 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
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
Loading