1
0
Fork 0
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:
Thomas 2024-03-07 21:30:56 +01:00 committed by GitHub
parent 04410e2b2d
commit c170d5c61b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 3 additions and 5 deletions

View file

@ -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"]

View file

@ -4,8 +4,6 @@
# COMMON VARIABLES
#=================================================
libretranslate_version="1.5.5"
#=================================================
# PERSONAL HELPERS
#=================================================

View file

@ -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
#=================================================

View file

@ -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
#=================================================