fix: create payload dir, bundle MokoOnyx ZIP during release build
Repo Health / Access control (push) Failing after 2s
Repo Health / Release configuration (push) Has been skipped
Repo Health / Scripts governance (push) Has been skipped
Repo Health / Repository health (push) Has been skipped

- Added payload/index.html placeholder
- script.php: look for mokoonyx.zip first, fallback to mokocassiopeia.zip
- auto-release.yml: download MokoOnyx stable ZIP into payload/ during build

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Jonathan Miller
2026-04-22 04:01:55 -05:00
parent 90003a5afa
commit d62e2d42d9
3 changed files with 24 additions and 4 deletions
+9 -4
View File
@@ -288,20 +288,25 @@ class plgSystemMokoWaaSInstallerScript implements InstallerScriptInterface
// Template not installed — install from bundled payload
$pluginPath = JPATH_PLUGINS . '/system/mokowaas';
$payloadZip = $pluginPath . '/payload/mokocassiopeia.zip';
$payloadZip = $pluginPath . '/payload/mokoonyx.zip';
// Fallback to legacy name
if (!file_exists($payloadZip)) {
$payloadZip = $pluginPath . '/payload/mokocassiopeia.zip';
}
if (!file_exists($payloadZip))
{
Factory::getApplication()->enqueueMessage(
'MokoCassiopeia payload not found at '
. $payloadZip,
'MokoOnyx payload not found. Please install MokoOnyx manually from '
. '<a href="https://git.mokoconsulting.tech/MokoConsulting/MokoOnyx/releases" target="_blank">Gitea Releases</a>.',
'warning'
);
return;
}
$tmpDir = JPATH_ROOT . '/tmp/mokocassiopeia';
$tmpDir = JPATH_ROOT . '/tmp/mokoonyx';
try
{