apps: auto-define YNH_HELPERS_VERSION from a new 'helpers_version' key in the manifest's [integration] section, or fallback to the 'packaging_format' info

This commit is contained in:
Alexandre Aubin 2024-05-27 16:38:09 +02:00
parent 7011b1c879
commit 1e47a1438b

View file

@ -2968,6 +2968,7 @@ def _make_environment_for_app_script(
"YNH_APP_INSTANCE_NUMBER": str(app_instance_nb),
"YNH_APP_MANIFEST_VERSION": manifest.get("version", "?"),
"YNH_APP_PACKAGING_FORMAT": str(manifest["packaging_format"]),
"YNH_HELPERS_VERSION": manifest.get("integration", {}).get("helpers_version") or manifest["packaging_format"],
"YNH_ARCH": system_arch(),
"YNH_DEBIAN_VERSION": debian_version(),
}