Add autoupdate.version_regex to the doc

This commit is contained in:
Salamandar 2024-02-17 12:18:59 +01:00
parent 4c317b96c8
commit 93793fef44

View file

@ -293,6 +293,14 @@ The script will rely on the code repo specified in the upstream section of the m
It is also possible to define `autoupdate.upstream` to use a different Git(hub) repository instead of the code repository from the upstream section of the manifest. This can be useful when, for example, the app uses other assets such as plugin from a different repository.
If the upstream project provides non-standard tag or release names, you can fix this,
with a regex with a matching group.
For example, if tags look like `release-v4.1`, put:
autoupdate.version_regex = "^release-v(.*)$"
and the autoupdater will use the matched group (here: `4.1`) as the version.
##### Provision/Update
- For elements with `prefetch = true`, will download the asset (for the appropriate architecture) and store them in `/var/cache/yunohost/download/$app/$source_id`, to be later picked up by `ynh_setup_source`. (NB: this only happens during install and upgrade, not restore)
@ -323,4 +331,3 @@ Provision a system user to be used by the app. The username is exactly equal to
##### Deprovision
- deletes the user and group