diff --git a/Makefile b/Makefile index ae57852a5..8fd320525 100644 --- a/Makefile +++ b/Makefile @@ -112,11 +112,8 @@ ifeq (, $(shell which cargo)) curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain stable endif -anvil: rustup -ifeq (, $(shell which anvil 2> /dev/null)) -# Install Anvil if it's not installed - ./scripts/install_anvil.sh -endif +rln-deps: rustup + ./scripts/install_rln_tests_dependencies.sh deps: | deps-common nat-libs waku.nims diff --git a/scripts/install_pnpm.sh b/scripts/install_pnpm.sh new file mode 100755 index 000000000..33aecdfc6 --- /dev/null +++ b/scripts/install_pnpm.sh @@ -0,0 +1,8 @@ +#!/usr/bin/env bash + +# Install pnpm +if ! command -v pnpm &> /dev/null; then + echo "pnpm is not installed, installing it now..." + curl -L https://unpkg.com/@pnpm/self-installer | node +fi + diff --git a/scripts/install_rln_tests_dependencies.sh b/scripts/install_rln_tests_dependencies.sh new file mode 100755 index 000000000..7b3bbd142 --- /dev/null +++ b/scripts/install_rln_tests_dependencies.sh @@ -0,0 +1,11 @@ +#!/usr/bin/env bash + +# Install Anvil +if ! command -v anvil &> /dev/null; then + ./scripts/install_anvil.sh +fi + +#Install pnpm +if ! command -v pnpm &> /dev/null; then + ./scripts/install_pnpm.sh +fi \ No newline at end of file