From ea2036672b2c13e562d461c4220b53523a40b259 Mon Sep 17 00:00:00 2001 From: Anshumancanrock <109489361+Anshumancanrock@users.noreply.github.com> Date: Mon, 12 Jan 2026 19:03:28 +0530 Subject: [PATCH] fix: normalize backslashes in glob paths for Windows compatibility (#25613) Co-authored-by: Pallav <90088723+Pallava-Joshi@users.noreply.github.com> --- apps/web/scripts/copy-app-store-static.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/web/scripts/copy-app-store-static.js b/apps/web/scripts/copy-app-store-static.js index a2f8edf8d1..601470719d 100644 --- a/apps/web/scripts/copy-app-store-static.js +++ b/apps/web/scripts/copy-app-store-static.js @@ -11,8 +11,10 @@ const copyAppStoreStatic = () => { const SVG_HASHES = {}; staticFiles.forEach((file) => { + // Normalize path separators for cross-platform compatibility (Windows uses backslashes) + const normalizedFile = file.replace(/\\/g, "/"); // Extract app name from path - const appNameMatch = file.match(/app-store\/(.*?)\/static/); + const appNameMatch = normalizedFile.match(/app-store\/(.*?)\/static/); if (!appNameMatch) return; const appDirName = appNameMatch[1];