mirror of
https://github.com/YunoHost-Apps/UMS_ynh.git
synced 2024-10-01 13:35:01 +02:00
Prepare auto-updater
This commit is contained in:
parent
09a2e495be
commit
7d46e67a01
7 changed files with 25 additions and 18 deletions
|
@ -1,5 +1,5 @@
|
|||
SOURCE_URL=https://github.com/UniversalMediaServer/UniversalMediaServer/releases/download/__UPSTREAM_VERSION__/UMS-__UPSTREAM_VERSION__-__MACH__.tgz
|
||||
SOURCE_SUM=__SHA256__
|
||||
SOURCE_URL=https://github.com/UniversalMediaServer/UniversalMediaServer/releases/download/__UPSTREAM_VERSION__/UMS-__UPSTREAM_VERSION__-arm64.tgz
|
||||
SOURCE_SUM=13b2aa5067c29fcb77956e0804ee96935cf731d1a88d3a24c15dd70964d45c73
|
||||
SOURCE_FORMAT=tgz
|
||||
SOURCE_SUM_PRG=sha256sum
|
||||
SOURCE_EXTRACT=false
|
5
conf/app.armel.src
Normal file
5
conf/app.armel.src
Normal file
|
@ -0,0 +1,5 @@
|
|||
SOURCE_URL=https://github.com/UniversalMediaServer/UniversalMediaServer/releases/download/__UPSTREAM_VERSION__/UMS-__UPSTREAM_VERSION__-armel.tgz
|
||||
SOURCE_SUM=f0f9b517fbcedd4b4883ef5de1a6bd96ba1740658220f52037fdb6a4a14d8543
|
||||
SOURCE_FORMAT=tgz
|
||||
SOURCE_SUM_PRG=sha256sum
|
||||
SOURCE_EXTRACT=false
|
5
conf/app.armhf.src
Normal file
5
conf/app.armhf.src
Normal file
|
@ -0,0 +1,5 @@
|
|||
SOURCE_URL=https://github.com/UniversalMediaServer/UniversalMediaServer/releases/download/__UPSTREAM_VERSION__/UMS-__UPSTREAM_VERSION__-armhf.tgz
|
||||
SOURCE_SUM=864924728649edb50a0b679fd058dcf0e6e4abbcf96a4ceb0c63e48f6b5514ce
|
||||
SOURCE_FORMAT=tgz
|
||||
SOURCE_SUM_PRG=sha256sum
|
||||
SOURCE_EXTRACT=false
|
5
conf/app.x86.src
Normal file
5
conf/app.x86.src
Normal file
|
@ -0,0 +1,5 @@
|
|||
SOURCE_URL=https://github.com/UniversalMediaServer/UniversalMediaServer/releases/download/__UPSTREAM_VERSION__/UMS-__UPSTREAM_VERSION__-x86_64.tgz
|
||||
SOURCE_SUM=32cd336096e373bf8b05d2b654bdac688b6daba3e0317be8ae63436820bdb6a4
|
||||
SOURCE_FORMAT=tgz
|
||||
SOURCE_SUM_PRG=sha256sum
|
||||
SOURCE_EXTRACT=false
|
5
conf/app.x86_64.src
Normal file
5
conf/app.x86_64.src
Normal file
|
@ -0,0 +1,5 @@
|
|||
SOURCE_URL=https://github.com/UniversalMediaServer/UniversalMediaServer/releases/download/__UPSTREAM_VERSION__/UMS-__UPSTREAM_VERSION__-x86_64.tgz
|
||||
SOURCE_SUM=32cd336096e373bf8b05d2b654bdac688b6daba3e0317be8ae63436820bdb6a4
|
||||
SOURCE_FORMAT=tgz
|
||||
SOURCE_SUM_PRG=sha256sum
|
||||
SOURCE_EXTRACT=false
|
|
@ -9,33 +9,20 @@ pkg_dependencies="mediainfo dcraw p7zip"
|
|||
|
||||
mach=`uname -m`
|
||||
|
||||
sha256_arm64=13b2aa5067c29fcb77956e0804ee96935cf731d1a88d3a24c15dd70964d45c73
|
||||
sha256_armel=f0f9b517fbcedd4b4883ef5de1a6bd96ba1740658220f52037fdb6a4a14d8543
|
||||
sha256_armhf=864924728649edb50a0b679fd058dcf0e6e4abbcf96a4ceb0c63e48f6b5514ce
|
||||
sha256_x86_64=32cd336096e373bf8b05d2b654bdac688b6daba3e0317be8ae63436820bdb6a4
|
||||
sha256_x86=18e897527abe618d477036198f963fadac737cf37ad12234cb40ba701afc736d
|
||||
|
||||
case "$mach" in
|
||||
"armv6l" ) mach="armel"
|
||||
sha256=$sha256_armel
|
||||
#for some reason, jre is not in the tarball
|
||||
pkg_dependencies="$pkg_dependencies openjdk-17-jre" ;;
|
||||
"armv7l" ) if [ $(dpkg --print-architecture) = "armhf" ]; then
|
||||
mach="armhf"
|
||||
sha256=$sha256_armhf
|
||||
else
|
||||
mach="armel"
|
||||
sha256=$sha256_armel
|
||||
fi
|
||||
pkg_dependencies="$pkg_dependencies openjdk-17-jre";;
|
||||
"armv8l" ) mach="arm64"
|
||||
sha256=$sha256_arm64
|
||||
pkg_dependencies="$pkg_dependencies openjdk-17-jre" ;;
|
||||
"aarch64" ) mach="arm64"
|
||||
sha256=$sha256_arm64
|
||||
pkg_dependencies="$pkg_dependencies openjdk-17-jre" ;;
|
||||
"x86_64" ) mach="x86_64"
|
||||
sha256=$sha256_x86_64 ;;
|
||||
* ) mach="x86"
|
||||
sha256=$sha256_x86 ;;
|
||||
"x86_64" ) mach="x86_64" ;;
|
||||
* ) mach="x86" ;;
|
||||
esac
|
||||
|
|
|
@ -104,7 +104,7 @@ ynh_script_progression --message="Setting up source files..." --weight=12
|
|||
# Download, check integrity, uncompress and patch the source from app.src
|
||||
# Create an app.src for the correct compiled version of UMS
|
||||
# match string are fulfilled in _common.sh
|
||||
ynh_add_config --template="../conf/app.src.default" --destination="../conf/app.src"
|
||||
ynh_add_config --template="../conf/app.$mach.src" --destination="../conf/app.src"
|
||||
|
||||
ynh_app_setting_set --app=$app --key=final_path --value=$final_path
|
||||
# Download, check integrity, uncompress and patch the source from app.src
|
||||
|
|
Loading…
Add table
Reference in a new issue