From 3b60543debb6c5d0dd127d2687cd4a8a11711779 Mon Sep 17 00:00:00 2001 From: Tom Butcher Date: Sun, 21 Jun 2026 16:32:50 +0100 Subject: [PATCH] Minor fixes. --- public/appupdate.js | 14 +------------- .../Management/AppUpdates/AppUpdateProgress.jsx | 2 +- 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/public/appupdate.js b/public/appupdate.js index e5c386a..b8b89fd 100644 --- a/public/appupdate.js +++ b/public/appupdate.js @@ -217,21 +217,9 @@ const buildWindowsInstallCommand = (app, installerPath) => ({ ] }) -const getSudoPromptName = (app) => { - const fallback = 'Farm Control' - const rawName = String(app.getName?.() || fallback) - const sanitized = rawName - .replace(/[^a-z0-9 ]/gi, ' ') - .replace(/\s+/g, ' ') - .trim() - .slice(0, 70) - - return sanitized || fallback -} - const launchMacInstaller = (app, installerPath, webContents) => { const installScript = buildMacInstallScript(app, installerPath) - const promptName = getSudoPromptName(app) + const promptName = 'farmcontrol' console.log('[app-update] launching macOS installer:', { installerPath, diff --git a/src/components/Dashboard/Management/AppUpdates/AppUpdateProgress.jsx b/src/components/Dashboard/Management/AppUpdates/AppUpdateProgress.jsx index 35263eb..063c48b 100644 --- a/src/components/Dashboard/Management/AppUpdates/AppUpdateProgress.jsx +++ b/src/components/Dashboard/Management/AppUpdates/AppUpdateProgress.jsx @@ -65,7 +65,7 @@ const AppUpdateProgress = ({ progress, update }) => { /> )} - {!isInstalling && ( + {!isInstalling && !isError && (