mirror of
https://github.com/YunoHost-Apps/kodi_ynh.git
synced 2024-09-03 19:26:34 +02:00
Use helper to download chorus2
This commit is contained in:
parent
2f10f2b4b6
commit
750beef317
2 changed files with 7 additions and 6 deletions
6
conf/arm-chorus2.src
Normal file
6
conf/arm-chorus2.src
Normal file
|
@ -0,0 +1,6 @@
|
|||
SOURCE_URL=https://github.com/xbmc/chorus2/releases/download/2.4.4/webinterface.default.2.4.4.zip
|
||||
SOURCE_SUM=efa76c18a155f263183df9eaa345e859f017000da064c35ec9809ff5c09e31c4
|
||||
SOURCE_SUM_PRG=sha256sum
|
||||
SOURCE_FORMAT=zip
|
||||
SOURCE_IN_SUBDIR=true
|
||||
SOURCE_FILENAME=
|
|
@ -29,8 +29,6 @@ open_webserver_port=$YNH_APP_ARG_OPEN_WEBSERVER_PORT
|
|||
#=================================================
|
||||
arch=$(uname -m)
|
||||
final_path=/var/www/$app
|
||||
chorus2_package="https://github.com/xbmc/chorus2/releases/download/2.4.4/webinterface.default.2.4.4.zip"
|
||||
|
||||
|
||||
test ! -e "$final_path" || ynh_die "This path already contains a folder"
|
||||
|
||||
|
@ -108,10 +106,7 @@ mkdir -p "$final_path/.kodi/userdata/"
|
|||
cp ../conf/advancedsettings.xml "$final_path/.kodi/userdata/advancedsettings.xml"
|
||||
|
||||
if [[ $arch != arm* ]]; then
|
||||
wget -q $chorus2_package -P /tmp
|
||||
unzip /tmp/webinterface.default.2.4.4.zip -d /tmp/
|
||||
mkdir -p "$final_path/.kodi/addons/"
|
||||
mv /tmp/webinterface.default/ "$final_path/.kodi/addons/webinterface.chorus2/"
|
||||
ynh_setup_source "$final_path/.kodi/addons/" "arm-chorus2"
|
||||
fi
|
||||
|
||||
chown -R "$app":"$app" "$final_path"
|
||||
|
|
Loading…
Add table
Reference in a new issue