mirror of
https://github.com/YunoHost-Apps/libretranslate_ynh.git
synced 2024-09-03 19:36:00 +02:00
upgrade to 1.5.6 + simplify script
This commit is contained in:
parent
04410e2b2d
commit
c170d5c61b
4 changed files with 3 additions and 5 deletions
|
@ -5,7 +5,7 @@ name = "LibreTranslate"
|
|||
description.en = "Open Source Machine Translation API"
|
||||
description.fr = "API de traduction automatique Open Source"
|
||||
|
||||
version = "1.5.5~ynh1"
|
||||
version = "1.5.6~ynh1"
|
||||
|
||||
maintainers = ["Thovi98"]
|
||||
|
||||
|
|
|
@ -4,8 +4,6 @@
|
|||
# COMMON VARIABLES
|
||||
#=================================================
|
||||
|
||||
libretranslate_version="1.5.5"
|
||||
|
||||
#=================================================
|
||||
# PERSONAL HELPERS
|
||||
#=================================================
|
||||
|
|
|
@ -26,7 +26,7 @@ ynh_script_progression --message="Installing LibreTranslate..." --weight=2
|
|||
pushd $install_dir
|
||||
python3 -m venv $install_dir/venv
|
||||
source $install_dir/venv/bin/activate
|
||||
ynh_exec_warn_less pip install libretranslate==$libretranslate_version toml
|
||||
ynh_exec_warn_less pip install libretranslate=="$(ynh_app_upstream_version)" toml
|
||||
popd
|
||||
|
||||
#=================================================
|
||||
|
|
|
@ -43,7 +43,7 @@ ynh_secure_remove $install_dir/.venv
|
|||
pushd $install_dir
|
||||
python3 -m venv $install_dir/venv
|
||||
source $install_dir/venv/bin/activate
|
||||
ynh_exec_warn_less pip install libretranslate==$libretranslate_version toml
|
||||
ynh_exec_warn_less pip install libretranslate=="$(ynh_app_upstream_version)" toml
|
||||
popd
|
||||
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue