diff --git a/pages/06.contribute/10.packaging_apps/80.resources/15.appresources/packaging_apps_resources.md b/pages/06.contribute/10.packaging_apps/80.resources/15.appresources/packaging_apps_resources.md index 06c6f640..6c8df359 100644 --- a/pages/06.contribute/10.packaging_apps/80.resources/15.appresources/packaging_apps_resources.md +++ b/pages/06.contribute/10.packaging_apps/80.resources/15.appresources/packaging_apps_resources.md @@ -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 -