mirror of
https://github.com/YunoHost-Apps/cinny_ynh.git
synced 2024-09-03 18:16:13 +02:00
Bump to 2.0.3. Fix updater.sh.
This commit is contained in:
parent
bf4fb0a042
commit
605090ba5e
3 changed files with 9 additions and 10 deletions
13
.github/workflows/updater.sh
vendored
13
.github/workflows/updater.sh
vendored
|
@ -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
|
# 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.
|
# 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
|
if [[ ${version:0:1} == "v" || ${version:0:1} == "V" ]]; then
|
||||||
version=${version:1}
|
version=${version:1}
|
||||||
fi
|
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.
|
# 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
|
# 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"
|
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)
|
# 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
|
# Leave $src empty to ignore the asset
|
||||||
case $asset_url in
|
case $asset_url in
|
||||||
*"cinny-v"*".tar.gz")
|
*"cinny-v"*".tar.gz") src="app" ;;
|
||||||
src="app"
|
*) src="";;
|
||||||
;;
|
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# If $src is not empty, let's process the asset
|
# If $src is not empty, let's process the asset
|
||||||
|
@ -87,9 +86,9 @@ rm -rf $tempdir
|
||||||
|
|
||||||
# Get extension
|
# Get extension
|
||||||
if [[ $filename == *.tar.gz ]]; then
|
if [[ $filename == *.tar.gz ]]; then
|
||||||
extension=tar.gz
|
extension=tar.gz
|
||||||
else
|
else
|
||||||
extension=${filename##*.}
|
extension=${filename##*.}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Rewrite source file
|
# Rewrite source file
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
SOURCE_URL=https://github.com/ajbura/cinny/releases/download/v2.0.0/cinny-v2.0.0.tar.gz
|
SOURCE_URL=https://github.com/ajbura/cinny/releases/download/v2.0.3/cinny-v2.0.3.tar.gz
|
||||||
SOURCE_SUM=b4cdd8034196f19db882df2df5d3b2af5d060883687400746f8fe00fb8df80e3
|
SOURCE_SUM=adbb847382317d8c2885bcd6a6717ee13e65f19a711ba61f37fddceb1b124f8e
|
||||||
SOURCE_SUM_PRG=sha256sum
|
SOURCE_SUM_PRG=sha256sum
|
||||||
SOURCE_FORMAT=tar.gz
|
SOURCE_FORMAT=tar.gz
|
||||||
SOURCE_IN_SUBDIR=true
|
SOURCE_IN_SUBDIR=true
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
"en": "Matrix client focusing primarily on simple, elegant and secure interface",
|
"en": "Matrix client focusing primarily on simple, elegant and secure interface",
|
||||||
"fr": "Client matrix orienté simplicité, élégance et sécurité"
|
"fr": "Client matrix orienté simplicité, élégance et sécurité"
|
||||||
},
|
},
|
||||||
"version": "2.0.0~ynh1",
|
"version": "2.0.3~ynh1",
|
||||||
"url": "https://cinny.in",
|
"url": "https://cinny.in",
|
||||||
"upstream": {
|
"upstream": {
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
|
Loading…
Add table
Reference in a new issue