fix: Joomla package builds now include language/ and other top-level dirs
Generic: Repo Health / Site Health (push) Has been cancelled
Generic: Repo Health / Access control (push) Has been cancelled
Universal: Auto Version Bump / Patch Bump (push) Has been cancelled
Platform: moko-platform CI / Gate 1: Code Quality (push) Has been cancelled
Platform: moko-platform CI / Gate 2: Unit Tests (8.1) (push) Has been cancelled
Platform: moko-platform CI / Gate 2: Unit Tests (8.2) (push) Has been cancelled
Platform: moko-platform CI / Gate 2: Unit Tests (8.3) (push) Has been cancelled
Platform: moko-platform CI / Gate 3: Self-Health Check (push) Has been cancelled
Platform: moko-platform CI / Gate 4: Governance (push) Has been cancelled
Platform: moko-platform CI / Gate 5: Template Integrity (push) Has been cancelled
Platform: moko-platform CI / CI Summary (push) Has been cancelled
Generic: Repo Health / Release configuration (push) Has been cancelled
Generic: Repo Health / Scripts governance (push) Has been cancelled
Generic: Repo Health / Repository health (push) Has been cancelled

pre-release.yml package build was only copying *.xml and *.php from
src/ root, missing language/, media/, and other non-package directories.

Fixes #187

Authored-by: Moko Consulting
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Jonathan Miller
2026-05-26 17:31:45 -05:00
parent 4ccefec2dc
commit dbf4cdef9a
+9
View File
@@ -162,9 +162,18 @@ jobs:
zip -r "../../build/package/${EXT_NAME}.zip" . -x $EXCLUDES
cd "$OLDPWD"
done
# Copy top-level files (manifest XML, script PHP, etc.)
for f in "${SOURCE_DIR}"/*.xml "${SOURCE_DIR}"/*.php; do
[ -f "$f" ] && cp "$f" build/package/
done
# Copy top-level directories (language/, media/, etc.) — exclude packages/
for d in "${SOURCE_DIR}"/*/; do
[ ! -d "$d" ] && continue
DIRNAME=$(basename "$d")
[ "$DIRNAME" = "packages" ] && continue
cp -r "$d" "build/package/${DIRNAME}"
echo " Included dir: ${DIRNAME}/"
done
else
echo "=== Building standard extension ==="
rsync -a \