Simplify component.php to minimal layout with conditional analytics #82

Merged
Copilot merged 78 commits from copilot/fix-breaking-overrides into main 2026-03-17 21:42:02 +00:00
2 changed files with 7 additions and 7 deletions
Showing only changes of commit 1a210bdb95 - Show all commits

View File

@@ -86,12 +86,12 @@ jobs:
run: | run: |
VERSION="${{ steps.version.outputs.version }}" VERSION="${{ steps.version.outputs.version }}"
# Update version in templateDetails.xml # Update version in templateDetails.xml
sed -i "s/<version>.*<\/version>/<version>${VERSION}<\/version>/g" src/templates/templateDetails.xml sed -i "s/<version>.*<\/version>/<version>${VERSION}<\/version>/g" src/templateDetails.xml
# Update version in updates.xml # Update version in updates.xml
sed -i "s/<version>.*<\/version>/<version>${VERSION}<\/version>/g" updates.xml sed -i "s/<version>.*<\/version>/<version>${VERSION}<\/version>/g" updates.xml
# Update creation date to today # Update creation date to today
DATE=$(date +%Y-%m-%d) DATE=$(date +%Y-%m-%d)
sed -i "s/<creationDate>.*<\/creationDate>/<creationDate>${DATE}<\/creationDate>/g" src/templates/templateDetails.xml sed -i "s/<creationDate>.*<\/creationDate>/<creationDate>${DATE}<\/creationDate>/g" src/templateDetails.xml
sed -i "s/<creationDate>.*<\/creationDate>/<creationDate>${DATE}<\/creationDate>/g" updates.xml sed -i "s/<creationDate>.*<\/creationDate>/<creationDate>${DATE}<\/creationDate>/g" updates.xml
- name: Create package structure - name: Create package structure

View File

@@ -19,7 +19,7 @@ This directory contains utility scripts for building, releasing, and managing th
**What it does**: **What it does**:
1. Creates a `build/` directory 1. Creates a `build/` directory
2. Copies template files from `src/templates/` 2. Copies template files from `src/`
3. Copies media files from `src/media/` to `media/` 3. Copies media files from `src/media/` to `media/`
4. Creates a ZIP package: `mokocassiopeia-src-{version}.zip` 4. Creates a ZIP package: `mokocassiopeia-src-{version}.zip`
5. Generates SHA-256 and MD5 checksums 5. Generates SHA-256 and MD5 checksums
@@ -116,7 +116,7 @@ git push origin 03.08.04
1. **Update version numbers**: 1. **Update version numbers**:
```bash ```bash
# Update these files manually: # Update these files manually:
# - src/templates/templateDetails.xml # - src/templateDetails.xml
# - updates.xml # - updates.xml
# - CHANGELOG.md # - CHANGELOG.md
``` ```
@@ -148,7 +148,7 @@ git push origin 03.08.04
1. **Update version numbers**: 1. **Update version numbers**:
```bash ```bash
# Update these files in a branch: # Update these files in a branch:
# - src/templates/templateDetails.xml # - src/templateDetails.xml
# - CHANGELOG.md # - CHANGELOG.md
git checkout -b release/03.08.04 git checkout -b release/03.08.04
@@ -199,7 +199,7 @@ git push origin 03.08.04
- [ ] All code changes merged to main - [ ] All code changes merged to main
- [ ] Version numbers updated: - [ ] Version numbers updated:
- [ ] `src/templates/templateDetails.xml` - [ ] `src/templateDetails.xml`
- [ ] `CHANGELOG.md` - [ ] `CHANGELOG.md`
- [ ] CHANGELOG.md updated with release notes - [ ] CHANGELOG.md updated with release notes
- [ ] Tests passing - [ ] Tests passing
@@ -237,7 +237,7 @@ brew install zip
Check: Check:
1. Tag format matches pattern: `[0-9][0-9].[0-9][0-9].[0-9][0-9]` 1. Tag format matches pattern: `[0-9][0-9].[0-9][0-9].[0-9][0-9]`
2. Repository has write permissions for GITHUB_TOKEN 2. Repository has write permissions for GITHUB_TOKEN
3. `src/templates/` and `src/media/` directories exist 3. `src/` and `src/media/` directories exist
**Problem**: auto-update-sha fails **Problem**: auto-update-sha fails