From 2a0184e9c31502e873387efd714c3db2df3b4f3c Mon Sep 17 00:00:00 2001 From: Alexandre Aubin <4533074+alexAubin@users.noreply.github.com> Date: Wed, 13 Dec 2023 15:51:40 +0100 Subject: [PATCH] Update scripts/install: define SOURCE_VERSION which is used during build when not in a git repo --- scripts/install | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/install b/scripts/install index 67630e2..7a3ee27 100755 --- a/scripts/install +++ b/scripts/install @@ -53,6 +53,7 @@ pushd $install_dir ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH $ynh_npm ci --quiet --production --prefer-offline --network-timeout=100000 ynh_script_progression --message="npm run build... This can be very long, be patient !" --weight=25 + export SOURCE_VERSION="$(cat YNH_APP_BASEDIR/manifest.toml | toml_to_json | jq -r ".resources.sources.main.url" | awk -F/ '{ print $NF }')" ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH $ynh_npm run build popd