From 631b168867ea2b3cf8120b1b1345482b4209391a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Szyma=C5=84ski?= Date: Fri, 19 Apr 2024 23:04:32 +0200 Subject: [PATCH] Fix exporter? --- scripts/install | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/scripts/install b/scripts/install index 7846c96..5672e44 100644 --- a/scripts/install +++ b/scripts/install @@ -117,8 +117,6 @@ ynh_exec_warn_less ynh_exec_as "$app" env $ynh_node_load_PATH corepack prepare - ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH yarn install --immutable ynh_secure_remove --file="target" ynh_exec_warn_less ynh_exec_as $app env PATH=$PATH JAVA_HOME=$JAVA_HOME NODE_ENV=production clojure -M:dev:shadow-cljs release main - #ynh_secure_remove --file="target/app" - cp ../.yarnrc.yml target/ cp yarn.lock target/ cp package.json target/ @@ -127,6 +125,7 @@ popd mkdir -p $install_dir/exporter mv $install_dir/build/exporter/target/* $install_dir/exporter +cp $install_dir/build/exporter/.yarnrc.yml $install_dir/exporter chown -R $app:$app $install_dir/exporter chmod -R 700 $install_dir/exporter @@ -140,17 +139,17 @@ popd ynh_script_progression --message="Cleaning up..." --weight=1 -# ynh_secure_remove --file=$install_dir/.npm -# ynh_secure_remove --file=$install_dir/.yarn -#ynh_secure_remove --file=$install_dir/build -# ynh_secure_remove --file=$install_dir/.m2 -# ynh_secure_remove --file=$install_dir/.clojure -# ynh_secure_remove --file=$install_dir/clojure -# ynh_secure_remove --file=$install_dir/babashka -# ynh_secure_remove --file=$install_dir/.cache/ms-playwright/firefox-* -# ynh_secure_remove --file=$install_dir/.cache/ms-playwright/webkit-* -# ynh_secure_remove --file=$install_dir/.cache/yarn -# ynh_secure_remove --file=$install_dir/.cache/node +ynh_secure_remove --file=$install_dir/.npm +ynh_secure_remove --file=$install_dir/.yarn +ynh_secure_remove --file=$install_dir/build +ynh_secure_remove --file=$install_dir/.m2 +ynh_secure_remove --file=$install_dir/.clojure +ynh_secure_remove --file=$install_dir/clojure +ynh_secure_remove --file=$install_dir/babashka +ynh_secure_remove --file=$install_dir/.cache/ms-playwright/firefox-* +ynh_secure_remove --file=$install_dir/.cache/ms-playwright/webkit-* +ynh_secure_remove --file=$install_dir/.cache/yarn +ynh_secure_remove --file=$install_dir/.cache/node #================================================= # SYSTEM CONFIGURATION