mirror of
https://github.com/YunoHost-Apps/calckey_ynh.git
synced 2024-09-03 18:16:18 +02:00
Update upgrade
This commit is contained in:
parent
b6abe8e729
commit
a4c866cd1c
1 changed files with 10 additions and 7 deletions
|
@ -21,7 +21,7 @@ upgrade_type=$(ynh_check_app_version_changed)
|
||||||
# ENSURE DOWNWARD COMPATIBILITY
|
# ENSURE DOWNWARD COMPATIBILITY
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
if ynh_compare_current_package_version --comparison lt --version 12.105.0~ynh1
|
if ynh_compare_current_package_version --comparison lt --version 13.0.5~ynh1
|
||||||
then
|
then
|
||||||
ynh_die --message="Sorry, this version is not upgradable to the latest version :("
|
ynh_die --message="Sorry, this version is not upgradable to the latest version :("
|
||||||
fi
|
fi
|
||||||
|
@ -99,12 +99,15 @@ ynh_add_nginx_config
|
||||||
ynh_script_progression --message="Building app..."
|
ynh_script_progression --message="Building app..."
|
||||||
|
|
||||||
pushd "$install_dir"
|
pushd "$install_dir"
|
||||||
corepack enable
|
curl https://sh.rustup.rs -sSf | ynh_exec_as $app sh -s -- -y
|
||||||
corepack prepare pnpm@latest --activate
|
export PATH="$install_dir/.cargo/bin:$PATH"
|
||||||
ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH pnpm clean-all
|
ynh_use_nodejs
|
||||||
ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH pnpm install
|
corepack enable
|
||||||
ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH NODE_ENV=production pnpm run build
|
corepack prepare pnpm@latest --activate
|
||||||
ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH pnpm run migrate
|
ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH pnpm clean-all
|
||||||
|
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 run build
|
||||||
|
ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH pnpm run migrate
|
||||||
popd
|
popd
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue