mirror of
https://github.com/YunoHost-Apps/mautrix_whatsapp_ynh.git
synced 2024-09-03 19:46:01 +02:00
Merge pull request #119 from YunoHost-Apps/testing
Testing to master [Fix updater new releases]
This commit is contained in:
commit
4028a41cb0
3 changed files with 5 additions and 6 deletions
9
.github/workflows/updater.sh
vendored
9
.github/workflows/updater.sh
vendored
|
@ -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
|
||||
|
|
|
@ -31,7 +31,6 @@ Therefore, [Synapse for YunoHost](https://github.com/YunoHost-Apps/synapse_ynh)
|
|||
* Official app website: <https://maunium.net/go/mautrix-whatsapp/>
|
||||
* Official admin documentation: <https://docs.mau.fi/bridges/go/whatsapp/index.html>
|
||||
* Upstream app code repository: <https://github.com/mautrix/whatsapp>
|
||||
* YunoHost documentation for this app: <https://yunohost.org/app_mautrix_whatsapp>
|
||||
* Report a bug: <https://github.com/YunoHost-Apps/mautrix_whatsapp_ynh/issues>
|
||||
|
||||
## Developer info
|
||||
|
|
|
@ -31,7 +31,6 @@ C'est pourquoi [Synapse for YunoHost](https://github.com/YunoHost-Apps/synapse_y
|
|||
* Site officiel de l’app : <https://maunium.net/go/mautrix-whatsapp/>
|
||||
* Documentation officielle de l’admin : <https://docs.mau.fi/bridges/go/whatsapp/index.html>
|
||||
* Dépôt de code officiel de l’app : <https://github.com/mautrix/whatsapp>
|
||||
* Documentation YunoHost pour cette app : <https://yunohost.org/app_mautrix_whatsapp>
|
||||
* Signaler un bug : <https://github.com/YunoHost-Apps/mautrix_whatsapp_ynh/issues>
|
||||
|
||||
## Informations pour les développeurs
|
||||
|
|
Loading…
Add table
Reference in a new issue