From 63858b4f556bbf944d27c076a20b6d8ad4e51e14 Mon Sep 17 00:00:00 2001 From: Giuseppe Imperato Date: Thu, 14 May 2026 17:10:36 +0200 Subject: [PATCH] fix(build): split dev Chrome ID in guard to prevent self-match The guard string must not match itself. Split the dev ID literal across a concatenation so the grep does not trigger on this file. Co-Authored-By: Claude Sonnet 4.6 --- scripts/build-installer.ps1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/build-installer.ps1 b/scripts/build-installer.ps1 index dd6b4d7..f2b4073 100644 --- a/scripts/build-installer.ps1 +++ b/scripts/build-installer.ps1 @@ -26,7 +26,8 @@ $RepoRoot = Split-Path -Parent $PSScriptRoot # Guard: block release builds that still contain the development Chrome Extension ID. # The dev ID (jmdd...) must never appear in src/ or scripts/ — only the Web Store ID (jadf...) is valid. -$devChromeId = "jmddfinmjgpgmfkiblhnjccagheadpop" +# NOTE: the ID is split here intentionally so the guard does not match its own definition. +$devChromeId = "jmdd" + "finmjgpgmfkiblhnjccagheadpop" $hits = Get-ChildItem -Recurse -File -Path "$RepoRoot\src","$RepoRoot\scripts" | Select-String -Pattern $devChromeId -ErrorAction SilentlyContinue if ($hits) {