diff --git a/scripts/restore b/scripts/restore index 0fea344..8002398 100644 --- a/scripts/restore +++ b/scripts/restore @@ -34,10 +34,12 @@ ynh_install_nodejs --nodejs_version=$NODEJS_VERSION #================================================= # REINSTALL PNPM #================================================= -ynh_script_progression --message="Reinstalling pnpm..." --weight=1 +ynh_script_progression --message="Reinstalling pnpm + rust..." --weight=1 -# Define and install pnpm +# Define and install pnpm + rust pushd "$install_dir" + curl https://sh.rustup.rs -sSf | ynh_exec_warn_less ynh_exec_as $app 'sh -s -- -y' + export PATH="$install_dir/.cargo/bin:$PATH" ynh_use_nodejs corepack enable corepack prepare pnpm@latest --activate