From 605090ba5e22727250f4aec1ddbc8116303b3916 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Sat, 21 May 2022 10:42:00 +0200 Subject: [PATCH] Bump to 2.0.3. Fix updater.sh. --- .github/workflows/updater.sh | 13 ++++++------- conf/app.src | 4 ++-- manifest.json | 2 +- 3 files changed, 9 insertions(+), 10 deletions(-) diff --git a/.github/workflows/updater.sh b/.github/workflows/updater.sh index adf6262..b0888ee 100755 --- a/.github/workflows/updater.sh +++ b/.github/workflows/updater.sh @@ -25,7 +25,7 @@ assets=($(curl --silent "https://api.github.com/repos/$repo/releases" | jq -r '[ # Later down the script, we assume the version has only digits and dots # Sometimes the release name starts with a "v", so let's filter it out. -# You may need more tweaks here if the upstream repository has different naming conventions. +# You may need more tweaks here if the upstream repository has different naming conventions. if [[ ${version:0:1} == "v" || ${version:0:1} == "V" ]]; then version=${version:1} fi @@ -58,7 +58,7 @@ echo "${#assets[@]} available asset(s)" # Here is an example for Grav, it has to be adapted in accordance with how the upstream releases look like. # Let's loop over the array of assets URLs -for asset_url in ${assets[@]}; do +for asset_url in "${assets[@]}"; do echo "Handling asset at $asset_url" @@ -66,9 +66,8 @@ 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 - *"cinny-v"*".tar.gz") - src="app" - ;; + *"cinny-v"*".tar.gz") src="app" ;; + *) src="";; esac # If $src is not empty, let's process the asset @@ -87,9 +86,9 @@ rm -rf $tempdir # Get extension if [[ $filename == *.tar.gz ]]; then - extension=tar.gz + extension=tar.gz else - extension=${filename##*.} + extension=${filename##*.} fi # Rewrite source file diff --git a/conf/app.src b/conf/app.src index 047a5a3..0dec765 100644 --- a/conf/app.src +++ b/conf/app.src @@ -1,5 +1,5 @@ -SOURCE_URL=https://github.com/ajbura/cinny/releases/download/v2.0.0/cinny-v2.0.0.tar.gz -SOURCE_SUM=b4cdd8034196f19db882df2df5d3b2af5d060883687400746f8fe00fb8df80e3 +SOURCE_URL=https://github.com/ajbura/cinny/releases/download/v2.0.3/cinny-v2.0.3.tar.gz +SOURCE_SUM=adbb847382317d8c2885bcd6a6717ee13e65f19a711ba61f37fddceb1b124f8e SOURCE_SUM_PRG=sha256sum SOURCE_FORMAT=tar.gz SOURCE_IN_SUBDIR=true diff --git a/manifest.json b/manifest.json index 427336e..4c281d4 100644 --- a/manifest.json +++ b/manifest.json @@ -6,7 +6,7 @@ "en": "Matrix client focusing primarily on simple, elegant and secure interface", "fr": "Client matrix orienté simplicité, élégance et sécurité" }, - "version": "2.0.0~ynh1", + "version": "2.0.3~ynh1", "url": "https://cinny.in", "upstream": { "license": "MIT",