Bridge: fetch stable URL from MokoOnyx updates.xml, fix double-exec
Some checks failed
Repo Health / Access control (push) Successful in 1s
Auto-Update SHA Hash / Update SHA-256 Hash in updates.xml (release) Failing after 5s
Repo Health / Release configuration (push) Failing after 3s
Repo Health / Scripts governance (push) Successful in 3s
Repo Health / Repository health (push) Failing after 3s

- Remove hardcoded RELEASE_URL, discover from updates.xml stable channel
- Add discoverStableUrl() to parse MokoOnyx updates.xml at runtime
- Extract httpGet() helper for reuse across download + XML fetch
- Remove bridge call from update() — postflight() handles it
- Always targets stable channel for production-safe installs

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Jonathan Miller
2026-04-21 12:01:51 -05:00
parent 532ead999d
commit 4d20eee830
2 changed files with 89 additions and 27 deletions

View File

@@ -113,15 +113,7 @@ class Tpl_MokocassiopeiaInstallerScript
);
}
// Bridge migration: MokoCassiopeia → MokoOnyx
$bridgeScript = __DIR__ . '/helper/bridge.php';
if (is_file($bridgeScript)) {
require_once $bridgeScript;
if (class_exists('MokoBridgeMigration')) {
MokoBridgeMigration::run();
}
}
// Bridge migration runs in postflight() — not here — to avoid double execution
return true;
}