From e9f4c1f3d359103999d4a2d3b600ef8209eeedd3 Mon Sep 17 00:00:00 2001 From: Tom Butcher Date: Sat, 8 Aug 2026 21:56:32 +0100 Subject: [PATCH] Refine CEF installer artifact detection logic in app update process - Updated isCefInstallerArtifact function to use a regex pattern for identifying CEF installer artifacts, improving accuracy in artifact name matching. - Enhanced comments for clarity on CEF build naming conventions, aiding future maintenance and understanding of the code. --- public/appupdate.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/public/appupdate.js b/public/appupdate.js index 96c0054..4c6dada 100644 --- a/public/appupdate.js +++ b/public/appupdate.js @@ -27,7 +27,8 @@ const getArtifactName = (artifact) => const isCefInstallerArtifact = (artifact) => { const name = getArtifactName(artifact).toLowerCase() - return name.endsWith('-cef.exe') || name.endsWith('-cef.pkg') + // CEF builds are named like farmcontrol-0.1.1-x64-cef.msi / -cef.pkg / -cef.exe + return /-cef\.[a-z0-9]+$/.test(name) } const normalizeArch = (arch) => {