From 49a7b343107c3fc0f1b8cfec0db9f2b515fe2055 Mon Sep 17 00:00:00 2001 From: Dante Date: Sat, 30 Sep 2023 00:18:01 +0100 Subject: [PATCH 1/2] Fix updater.sh new releases and typo --- .github/workflows/updater.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/updater.sh b/.github/workflows/updater.sh index 253aacc..608b070 100755 --- a/.github/workflows/updater.sh +++ b/.github/workflows/updater.sh @@ -14,6 +14,7 @@ #================================================= # Fetching information +app="mautrix-whatsapp" current_version=$(yq ".version" manifest.toml | cut -d '~' -f 1 -) repo=$(yq ".upstream.code" manifest.toml | sed 's/https:\/\/github.com\///') # Some jq magic is needed, because the latest upstream release is not always the latest version (e.g. security patches for older versions) @@ -64,13 +65,13 @@ 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 - *"amd64") + *"$app-amd64") src="amd64" ;; - *"arm") + *"$app-arm") src="armhf" ;; - *"arm64") + *"$app-arm64") src="arm64" ;; *) @@ -91,7 +92,7 @@ curl --silent -4 -L $tarball -o "$tempdir/$version" checksum=$(sha256sum "$tempdir/$filename" | head -c 64) # Rewrite source file -sed -i "s|$src.url.*|src.url = \"$asset_url\"|g" manifest.toml +sed -i "s|$src.url.*|$src.url = \"$asset_url\"|g" manifest.toml sed -i "s|$src.sha256.*|$src.sha256 = \"$checksum\"|g" manifest.toml else From 3fdd918104721274be5be64ac4fcb97f456b86b2 Mon Sep 17 00:00:00 2001 From: yunohost-bot Date: Fri, 29 Sep 2023 23:18:36 +0000 Subject: [PATCH 2/2] Auto-update README --- README.md | 1 - README_fr.md | 1 - 2 files changed, 2 deletions(-) diff --git a/README.md b/README.md index e1ea6c0..9a0d0b1 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,6 @@ Therefore, [Synapse for YunoHost](https://github.com/YunoHost-Apps/synapse_ynh) * Official app website: * Official admin documentation: * Upstream app code repository: -* YunoHost documentation for this app: * Report a bug: ## Developer info diff --git a/README_fr.md b/README_fr.md index 0728079..4adb0ac 100644 --- a/README_fr.md +++ b/README_fr.md @@ -31,7 +31,6 @@ C'est pourquoi [Synapse for YunoHost](https://github.com/YunoHost-Apps/synapse_y * Site officiel de l’app : * Documentation officielle de l’admin : * Dépôt de code officiel de l’app : -* Documentation YunoHost pour cette app : * Signaler un bug : ## Informations pour les développeurs