From 3cdcde28e0c1cf27d9a6384a42365f81ba87b13a Mon Sep 17 00:00:00 2001 From: lapineige Date: Sun, 21 Jan 2024 12:08:03 +0100 Subject: [PATCH] use node_load_path + check node version --- scripts/install | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts/install b/scripts/install index b3a3892..468c7f7 100644 --- a/scripts/install +++ b/scripts/install @@ -65,11 +65,12 @@ export WITH_DOCKER=no # or source .env ? # Using this for now ynh_script_progression --message="Configuring Bonfire release..." --weight=1 cd $install_dir +ynh_exec_warn ynh_exec_as $app -s $SHELL -lc "node -v" #ynh_exec_warn_less ynh_exec_as $app -s $SHELL -lc "mise plugin add erlang https://github.com/asdf-vm/asdf-erlang.git" # add erlang as source #ynh_exec_warn_less ynh_exec_as $app -s $SHELL -lc "mise install" # install Elixir -ynh_exec_warn_less ynh_exec_as $app -s $SHELL -lc "WITH_DOCKER=no mix local.hex --force" # install Hex in non-interractive way -ynh_exec_warn_less ynh_exec_as $app -s $SHELL -lc "WITH_DOCKER=no just config-basic" -#ynh_exec_warn_less ynh_exec_as $app -s $SHELL -lc "WITH_DOCKER=no just mix bonfire.deps .update" +ynh_exec_warn_less ynh_exec_as $app -s $SHELL -lc "WITH_DOCKER=no $ynh_node_load_PATH mix local.hex --force" # install Hex in non-interractive way +ynh_exec_warn_less ynh_exec_as $app -s $SHELL -lc "WITH_DOCKER=no $ynh_node_load_PATH just config-basic" +#ynh_exec_warn_less ynh_exec_as $app -s $SHELL -lc "WITH_DOCKER=no $ynh_node_load_PATH just mix bonfire.deps .update" #================================================= # Building the release