1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/libremdb_ynh.git synced 2024-09-03 19:36:22 +02:00

do not use corepack

This commit is contained in:
Sebastian Gumprich 2024-05-13 10:10:48 +02:00
parent d48705fcef
commit 657496587b
2 changed files with 6 additions and 9 deletions

View file

@ -60,8 +60,6 @@ ynh_script_progression --message="Building $app..." --weight=20
pushd $install_dir
ynh_use_nodejs
#corepack enable
#corepack prepare pnpm@latest --activate
ynh_exec_warn_less npm install pnpm -g
ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH pnpm install
ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH NODE_ENV=production pnpm build

View file

@ -55,13 +55,12 @@ then
ynh_setup_source --dest_dir="$install_dir"
chmod -R o-rwx "$install_dir"
chown -R $app:www-data "$install_dir"
pushd $install_dir
ynh_use_nodejs
corepack enable
corepack prepare pnpm@latest --activate
ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH pnpm install
ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH NODE_ENV=production pnpm build
popd
pushd $install_dir
ynh_use_nodejs
ynh_exec_warn_less npm install pnpm -g
ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH pnpm install
ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH NODE_ENV=production pnpm build
popd
fi
chmod -R o-rwx "$install_dir"