1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/mopidy_ynh.git synced 2024-09-03 19:46:21 +02:00

set progression bar

This commit is contained in:
siwinter 2021-03-19 19:22:55 +01:00 committed by GitHub
parent 1ccd5ba821
commit 674a5343cc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -16,7 +16,7 @@ pkg_dependencies="build-essential python3-dev python3-pip python3-venv git postg
python_version="$(python3 -V | cut -d' ' -f2 | cut -d. -f1-2)" python_version="$(python3 -V | cut -d' ' -f2 | cut -d. -f1-2)"
myynh_install() { myynh_install() {
ynh_script_progression --message="Install / upgrade mopidy via pip..." --time --weight=1 ynh_script_progression --message="Install / upgrade mopidy via pip..." --weight=8
python3 -m venv "${final_path}/env" python3 -m venv "${final_path}/env"
chown -R "$app" "$final_path" chown -R "$app" "$final_path"
@ -27,7 +27,7 @@ myynh_install() {
set -o nounset set -o nounset
ynh_exec_as $app $final_path/env/bin/pip install --upgrade --no-cache-dir pip ynh_exec_as $app $final_path/env/bin/pip install --upgrade --no-cache-dir pip
ynh_script_progression --message="Installing essentials..." --time --weight=1 ynh_script_progression --message="Installing essentials..." --weight=17
# to make Gstreamer visible in Python environment # to make Gstreamer visible in Python environment
$final_path/env/bin/python3 -m pip install vext $final_path/env/bin/python3 -m pip install vext
@ -39,26 +39,26 @@ myynh_install() {
ynh_exec_as $app $final_path/env/bin/python3 -m pip install --no-cache-dir Mopidy-local==3.2.1 ynh_exec_as $app $final_path/env/bin/python3 -m pip install --no-cache-dir Mopidy-local==3.2.1
ynh_exec_as $app $final_path/env/bin/python3 -m pip install --no-cache-dir Mopidy-MusicBox-Webclient==3.1.0 ynh_exec_as $app $final_path/env/bin/python3 -m pip install --no-cache-dir Mopidy-MusicBox-Webclient==3.1.0
ynh_script_progression --message="Installing Mopidy-YouTube..." --time --weight=1 ynh_script_progression --message="Installing Mopidy-YouTube..." --weight=7
ynh_exec_as $app $final_path/env/bin/python3 -m pip install --no-cache-dir Mopidy-YouTube==3.2 ynh_exec_as $app $final_path/env/bin/python3 -m pip install --no-cache-dir Mopidy-YouTube==3.2
ynh_script_progression --message="Installing Mopidy-YTMusic..." --time --weight=1 ynh_script_progression --message="Installing Mopidy-YTMusic..." --weight=2
ynh_exec_as $app $final_path/env/bin/python3 -m pip install --no-cache-dir Mopidy-YTMusic==0.2.2 ynh_exec_as $app $final_path/env/bin/python3 -m pip install --no-cache-dir Mopidy-YTMusic==0.2.2
ynh_script_progression --message="Installing Mopidy-RadioNet..." --time --weight=1 ynh_script_progression --message="Installing Mopidy-RadioNet..."
ynh_exec_as $app $final_path/env/bin/python3 -m pip install --no-cache-dir Mopidy-RadioNet==0.2.2 ynh_exec_as $app $final_path/env/bin/python3 -m pip install --no-cache-dir Mopidy-RadioNet==0.2.2
ynh_script_progression --message="Installing Mopidy-Podcast..." --time --weight=1 ynh_script_progression --message="Installing Mopidy-Podcast..."
ynh_exec_as $app $final_path/env/bin/python3 -m pip install --no-cache-dir Mopidy-Podcast==3.0.0 ynh_exec_as $app $final_path/env/bin/python3 -m pip install --no-cache-dir Mopidy-Podcast==3.0.0
ynh_script_progression --message="Installing Mopidy-Podcast-iTunes..." --time --weight=1 ynh_script_progression --message="Installing Mopidy-Podcast-iTunes..." --weight=2
ynh_exec_as $app $final_path/env/bin/python3 -m pip install --no-cache-dir Mopidy-Podcast-iTunes==3.0.0 ynh_exec_as $app $final_path/env/bin/python3 -m pip install --no-cache-dir Mopidy-Podcast-iTunes==3.0.0
ynh_script_progression --message="Installing Mopidy-SoundCloud..." --time --time --weight=1 ynh_script_progression --message="Installing Mopidy-SoundCloud..." --weight=6
ynh_exec_as $app $final_path/env/bin/python3 -m pip install --no-cache-dir Mopidy-SoundCloud ynh_exec_as $app $final_path/env/bin/python3 -m pip install --no-cache-dir Mopidy-SoundCloud
# ynh_script_progression --message="Installing Mopidy-Spotify..." --time --weight=1 # ynh_script_progression --message="Installing Mopidy-Spotify..." --time --weight=1
# ynh_exec_as $app $final_path/env/bin/python3 -m pip install --no-cache-dir Mopidy-Spotify Spotify Lib currently not available!! # ynh_exec_as $app $final_path/env/bin/python3 -m pip install --no-cache-dir Mopidy-Spotify Spotify Lib currently not available!!
if [ -n "$(uname -m | grep arm)" ]; # check CPU (raspberry is armxx) # if [ -n "$(uname -m | grep arm)" ]; # check CPU (raspberry is armxx)
then # then
ynh_script_progression --message="Installing Mopidy-Raspberry-GPIO..." --time --weight=1 # ynh_script_progression --message="Installing Mopidy-Raspberry-GPIO..." --time --weight=1#
ynh_exec_as $app $final_path/env/bin/python3 -m pip install --no-cache-dir Mopidy-Raspberry-GPIO # ynh_exec_as $app $final_path/env/bin/python3 -m pip install --no-cache-dir Mopidy-Raspberry-GPIO
fi # fi
# set +o nounset # set +o nounset