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 && (