Skip to content

Bump Fluidd to v1.37.1#199

Open
pdscomp wants to merge 1 commit into
mainfrom
paul/fluidd-v1.37.1
Open

Bump Fluidd to v1.37.1#199
pdscomp wants to merge 1 commit into
mainfrom
paul/fluidd-v1.37.1

Conversation

@pdscomp
Copy link
Copy Markdown
Contributor

@pdscomp pdscomp commented Jun 1, 2026

Updates the Fluidd web UI package to the latest v1.37.1 release.

Changes

  • Recipe rename: fluidd_1.37.0.bbfluidd_1.37.1.bb
  • SRC_URI SHA-256: Updated to f08e9d438fdce472553e1ce46a9be62f5ababb4b0f64f65efbd4561d9379653c
  • LIC_FILES_CHKSUM: Updated to md5=3b00ecfc948a3467a588bf3a3eb33a00 for the new index.html
  • Theme patcher robustness: Fixed the onThemeChange JavaScript patch to use regex instead of hardcoded minified variable names (IotJ, ftOJ in v1.37.1). The patcher now dynamically captures the minified variable names so it works across both v1.37.0 and v1.37.1.

Verification

  • Downloaded and verified release zip SHA-256
  • Verified LIC_FILES_CHKSUM from v1.37.1 index.html
  • python3 -m py_compile passes for apply-opencentauri-fluidd-theme.py
  • Theme patcher tested against v1.37.1 bundle — applies cleanly
  • Theme patcher tested against v1.37.0 bundle — still applies cleanly (backward compatible)
  • Verified patched index.html, manifest.webmanifest, onThemeChange, and favicon output in extracted bundles
  • CI build passes

Upstream release notes: https://github.com/fluidd-core/fluidd/releases/tag/v1.37.1

Copilot AI review requested due to automatic review settings June 1, 2026 22:15
@pdscomp pdscomp deployed to approval-given June 1, 2026 22:16 — with GitHub Actions Active
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the Yocto recipe for Fluidd to v1.37.1 and adjusts the OpenCentauri theme patcher to keep working across upstream minified bundle changes.

Changes:

  • Updated Fluidd recipe SRC_URI[sha256sum] and LIC_FILES_CHKSUM for the v1.37.1 release zip contents.
  • Switched the theme patcher’s onThemeChange injection from hardcoded minified identifiers to a regex-based match and substitution.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
meta-opencentauri/recipes-apps/fluidd/fluidd_1.37.1.bb Updates source and license checksums for the v1.37.1 Fluidd release artifact.
meta-opencentauri/recipes-apps/fluidd/files/opencentauri-fluidd-theme/apply-opencentauri-fluidd-theme.py Makes the JS bundle patching more resilient by matching onThemeChange via regex before injecting dataset toggling logic.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

f'n.dark=t.isDark,n.currentTheme.primary=t.color,'
f'n.currentTheme[`primary-offset`]=new {color_class}(t.color).desaturate(5).darken(10).toHexString(),'
f'n.themes.dark.logo=t.logo.light,n.themes.light.logo=t.logo.dark;'
f'document.documentElement.dataset.fluiddTheme=(t.logo?.src===`logo_opencentauri.svg`)?`OpenCentauri`:``}}'
Comment on lines +152 to +164
match = on_theme_re.search(text)
if not match:
raise RuntimeError(f"{path}: onThemeChange pattern not found")
theme_var, color_class = match.groups()
old_on_theme_change = match.group(0)
new_on_theme_change = (
f'async onThemeChange(e,t){{let n={theme_var}.framework.theme;'
f'n.dark=t.isDark,n.currentTheme.primary=t.color,'
f'n.currentTheme[`primary-offset`]=new {color_class}(t.color).desaturate(5).darken(10).toHexString(),'
f'n.themes.dark.logo=t.logo.light,n.themes.light.logo=t.logo.dark;'
f'document.documentElement.dataset.fluiddTheme=(t.logo?.src===`logo_opencentauri.svg`)?`OpenCentauri`:``}}'
)
text = text.replace(old_on_theme_change, new_on_theme_change, 1)
Changes:
- Rename recipe: fluidd_1.37.0.bb -> fluidd_1.37.1.bb
- Update SRC_URI sha256sum for v1.37.1 release zip
  f08e9d438fdce472553e1ce46a9be62f5ababb4b0f64f65efbd4561d9379653c
- Update LIC_FILES_CHKSUM for new index.html
  md5=3b00ecfc948a3467a588bf3a3eb33a00
- Fix theme patcher to use regex for onThemeChange
  The minified variable names (Io->tJ, ft->OJ) change between builds.
  Use a regex that captures the variable names dynamically so the patch
  works across both v1.37.0 and v1.37.1 (and future builds).
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 1, 2026

✅ Build Artifacts

Branch: paul/fluidd-v1.37.1
Build: 1d8ac72 (merge into main)

Artifact Size
CC1 Firmware 91.27 MB

View workflow run

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants