1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/svgedit_ynh.git synced 2024-09-03 20:26:24 +02:00
This commit is contained in:
Salamandar 2024-01-05 15:46:07 +01:00
parent d6f7fa2f40
commit 81460fa122
2 changed files with 6 additions and 2 deletions

View file

@ -36,8 +36,10 @@ pushd "$install_dir/source"
ynh_use_nodejs
ynh_exec_warn_less ynh_exec_as "$app" env "$ynh_node_load_PATH" npm i
ynh_exec_warn_less ynh_exec_as "$app" env "$ynh_node_load_PATH" npm run build
ynh_secure_remove --file="node_modules"
popd
ynh_secure_remove --file="$install_dir/source/node_modules"
ynh_secure_remove --file="$install_dir/.cache"
ynh_secure_remove --file="$install_dir/.npm"
mv "$install_dir/source/dist/editor" "$install_dir/www"

View file

@ -42,8 +42,10 @@ pushd "$install_dir/source"
ynh_use_nodejs
ynh_exec_warn_less ynh_exec_as "$app" env "$ynh_node_load_PATH" npm i
ynh_exec_warn_less ynh_exec_as "$app" env "$ynh_node_load_PATH" npm run build
ynh_secure_remove --file="node_modules"
popd
ynh_secure_remove --file="$install_dir/source/node_modules"
ynh_secure_remove --file="$install_dir/.cache"
ynh_secure_remove --file="$install_dir/.npm"
mv "$install_dir/source/dist/editor" "$install_dir/www"