Minor fixes.
All checks were successful
farmcontrol/farmcontrol-ui/pipeline/head This commit looks good
All checks were successful
farmcontrol/farmcontrol-ui/pipeline/head This commit looks good
This commit is contained in:
parent
bc5eea25bd
commit
3b60543deb
@ -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,
|
||||
|
||||
@ -65,7 +65,7 @@ const AppUpdateProgress = ({ progress, update }) => {
|
||||
/>
|
||||
)}
|
||||
|
||||
{!isInstalling && (
|
||||
{!isInstalling && !isError && (
|
||||
<Progress
|
||||
percent={percent}
|
||||
status={getProgressStatus(phase)}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user