1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/crabfit_ynh.git synced 2024-09-03 18:16:21 +02:00

Move the ynh_script_progression outside of _common.sh

This commit is contained in:
Antoine Lima 2024-03-10 00:12:56 +01:00
parent 6e25ff7dc6
commit 304f264051
No known key found for this signature in database
GPG key ID: 5D1E65E3DEB73410
3 changed files with 4 additions and 4 deletions

View file

@ -10,8 +10,6 @@ export nodejs_version="18"
#================================================= #=================================================
function build_backend function build_backend
{ {
ynh_script_progression --message="Building crabfit backend..." --weight=1
# The cargo version packaged with debian (currently 11) is too old and results in errors.. # The cargo version packaged with debian (currently 11) is too old and results in errors..
# Thus the latest version is manually installed alongside the application for the moment # Thus the latest version is manually installed alongside the application for the moment
pushd $install_dir/api pushd $install_dir/api
@ -36,8 +34,6 @@ function build_backend
function build_frontend function build_frontend
{ {
ynh_script_progression --message="Building crabfit frontend..." --weight=1
pushd $install_dir/frontend pushd $install_dir/frontend
ynh_exec_warn_less env "$ynh_node_load_PATH" $nodejs_path/corepack enable ynh_exec_warn_less env "$ynh_node_load_PATH" $nodejs_path/corepack enable
ynh_exec_warn_less ynh_exec_as "$app" env "$ynh_node_load_PATH" $nodejs_path/yarn install --production --frozen-lockfile ynh_exec_warn_less ynh_exec_as "$app" env "$ynh_node_load_PATH" $nodejs_path/yarn install --production --frozen-lockfile

View file

@ -60,11 +60,13 @@ chown $app:$app "$install_dir/api/.env"
#================================================= #=================================================
# BUILD BACKEND # BUILD BACKEND
#================================================= #=================================================
ynh_script_progression --message="Building crabfit backend..." --weight=10
build_backend build_backend
#================================================= #=================================================
# BUILD FRONTEND # BUILD FRONTEND
#================================================= #=================================================
ynh_script_progression --message="Building crabfit frontend..." --weight=2
build_frontend build_frontend
#================================================= #=================================================

View file

@ -132,11 +132,13 @@ chown $app:$app "$install_dir/api/.env"
#================================================= #=================================================
# BUILD BACKEND # BUILD BACKEND
#================================================= #=================================================
ynh_script_progression --message="Building crabfit backend..." --weight=10
build_backend build_backend
#================================================= #=================================================
# BUILD FRONTEND # BUILD FRONTEND
#================================================= #=================================================
ynh_script_progression --message="Building crabfit frontend..." --weight=2
build_frontend build_frontend
#================================================= #=================================================