mirror of
https://github.com/YunoHost-Apps/iceshrimp_ynh.git
synced 2024-09-03 19:15:54 +02:00
Update restore
This commit is contained in:
parent
41b8ec3733
commit
ab7de116a8
1 changed files with 7 additions and 9 deletions
|
@ -32,19 +32,17 @@ ynh_script_progression --message="Reinstalling dependencies..." --weight=5
|
|||
ynh_install_nodejs --nodejs_version=$NODEJS_VERSION
|
||||
|
||||
#=================================================
|
||||
# REINSTALL PNPM
|
||||
# REINSTALL YARN
|
||||
#=================================================
|
||||
ynh_script_progression --message="Reinstalling pnpm..." --weight=1
|
||||
ynh_script_progression --message="Reinstalling yarn..." --weight=1
|
||||
|
||||
# Define and install pnpm
|
||||
# Define and install yarn
|
||||
pushd "$install_dir"
|
||||
curl https://sh.rustup.rs -sSf | ynh_exec_warn_less ynh_exec_as $app sh -s -- -y
|
||||
export PATH="$install_dir/.cargo/bin:$PATH"
|
||||
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
|
||||
corepack prepare --activate
|
||||
ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH yarn install
|
||||
ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH NODE_ENV=production yarn build
|
||||
popd
|
||||
|
||||
#=================================================
|
||||
|
|
Loading…
Reference in a new issue