From 71fe6e3462b881af1cc65b60965070faa60c4102 Mon Sep 17 00:00:00 2001 From: Tom Butcher Date: Sun, 21 Jun 2026 18:38:23 +0100 Subject: [PATCH] Refactor Mac installer progress messages for clarity; simplify progress percentage calculation and update installation prompt message. --- public/appupdate.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/public/appupdate.js b/public/appupdate.js index 2d618c8..d2b0ec3 100644 --- a/public/appupdate.js +++ b/public/appupdate.js @@ -188,10 +188,7 @@ const parseMacInstallerProgress = (output) => { } else if (line.startsWith('installer:%')) { const value = Number.parseFloat(line.slice('installer:%'.length)) if (Number.isFinite(value)) { - percent = Math.min( - 100, - Math.round(value <= 1 ? value * 100 : value) - ) + percent = Math.min(100, Math.round(value <= 1 ? value * 100 : value)) } } else if ( line.startsWith('installer: ') && @@ -259,8 +256,7 @@ const launchMacInstaller = (app, installerPath, webContents) => { sendProgress(webContents, { phase: 'installing', percent: 0, - message: - 'Installing update. Enter your Mac password when prompted, then Farm Control will restart automatically.' + message: 'Enter your Mac password when prompted.' }) app.focus({ steal: true })