1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/matterbridge_ynh.git synced 2024-09-03 19:36:24 +02:00

Add autoupdater

This commit is contained in:
ericgaspar 2022-05-10 08:30:14 +02:00
parent 87abe76a57
commit 553a3a981f
No known key found for this signature in database
GPG key ID: 574F281483054D44
2 changed files with 10 additions and 7 deletions

View file

@ -10,7 +10,7 @@
# automatic actions when a new upstream release is detected.
# Remove this exit command when you are ready to run this Action
exit 1
#exit 1
#=================================================
# FETCHING LATEST RELEASE AND ITS ASSETS
@ -67,11 +67,14 @@ echo "Handling asset at $asset_url"
# Here we base the source file name upon a unique keyword in the assets url (admin vs. update)
# Leave $src empty to ignore the asset
case $asset_url in
*"admin"*)
src="app"
"matterbridge-"*"-linux-64bit")
src="amd64"
;;
*"update"*)
src="app-upgrade"
"matterbridge-"*"-linux-arm64")
src="arm64"
;;
"matterbridge-"*"-linux-armv7")
src="armhf"
;;
*)
src=""

View file

@ -1,5 +1,5 @@
SOURCE_URL=https://github.com/42wim/matterbridge/releases/download/v1.24.1/matterbridge-1.24.1-linux-armv6
SOURCE_SUM=96d08c3fe9031b64fae36bc30d6ed8e5fd6440afd37c78f71b8b2685f280bfa5
SOURCE_URL=https://github.com/42wim/matterbridge/releases/download/v1.24.1/matterbridge-1.24.1-linux-armv7
SOURCE_SUM=2ab8e188116ac6f937102e14ff841e73a382dec0f1ace7446d23f2688894ca70
SOURCE_SUM_PRG=sha256sum
SOURCE_IN_SUBDIR=false
SOURCE_FILENAME=matterbridge