cli: updates_generate.php - build updates.xml from manifest #57

Closed
opened 2026-05-23 22:53:57 +00:00 by jmiller · 1 comment
Owner

Summary

Extract the updates.xml generation logic from auto-release.yml (lines 373-513) into a standalone CLI tool.

What it does

  • Parses Joomla XML manifest for extension name/type/element/client/folder
  • Resolves language keys from .ini files for pretty name
  • Generates complete updates.xml with all stability channels (dev, alpha, beta, rc, stable)
  • Builds download URLs with proper TYPE_PREFIX naming

CLI interface

php cli/updates_generate.php   --path . --version "$VERSION"   --gitea-url "$GITEA_URL" --org "$ORG" --repo "$REPO"   --output-file updates.xml --output-metadata-as-json

Priority

Very High complexity, very high reuse across all Joomla repos.

## Summary Extract the updates.xml generation logic from auto-release.yml (lines 373-513) into a standalone CLI tool. ## What it does - Parses Joomla XML manifest for extension name/type/element/client/folder - Resolves language keys from .ini files for pretty name - Generates complete updates.xml with all stability channels (dev, alpha, beta, rc, stable) - Builds download URLs with proper TYPE_PREFIX naming ## CLI interface ```bash php cli/updates_generate.php --path . --version "$VERSION" --gitea-url "$GITEA_URL" --org "$ORG" --repo "$REPO" --output-file updates.xml --output-metadata-as-json ``` ## Priority Very High complexity, very high reuse across all Joomla repos.
Author
Owner

Already implemented

Exists as cli/updates_xml_build.php (334 lines). Supports:

  • --path, --version, --stability, --sha
  • --gitea-url, --org, --repo
  • --output, --github-output

No new work needed — closing as already resolved.

## Already implemented Exists as `cli/updates_xml_build.php` (334 lines). Supports: - `--path`, `--version`, `--stability`, `--sha` - `--gitea-url`, `--org`, `--repo` - `--output`, `--github-output` No new work needed — closing as already resolved.
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: MokoConsulting/moko-platform#57