mirror of
https://github.com/YunoHost-Apps/terraforming-mars_ynh.git
synced 2024-09-03 20:36:05 +02:00
Update scripts/install: define SOURCE_VERSION which is used during build when not in a git repo
This commit is contained in:
parent
a79f782f9d
commit
2a0184e9c3
1 changed files with 1 additions and 0 deletions
|
@ -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_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
|
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
|
ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH $ynh_npm run build
|
||||||
popd
|
popd
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue