From 553a3a981f9d78f41f4a46f998e5c13ef2dc31cf Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Tue, 10 May 2022 08:30:14 +0200 Subject: [PATCH] Add autoupdater --- .github/workflows/updater.sh | 13 ++++++++----- conf/armhf.src | 4 ++-- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/.github/workflows/updater.sh b/.github/workflows/updater.sh index 72eb5cb..4613221 100755 --- a/.github/workflows/updater.sh +++ b/.github/workflows/updater.sh @@ -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="" diff --git a/conf/armhf.src b/conf/armhf.src index 12c940f..932497a 100644 --- a/conf/armhf.src +++ b/conf/armhf.src @@ -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