Enhance Mac installer progress logging by adding console output for better debugging and clarity during installation phases.
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
6d85d98a50
commit
128cf603e7
@ -179,6 +179,8 @@ const parseMacInstallerProgress = (output) => {
|
||||
let percent = null
|
||||
let message = 'Installing update...'
|
||||
|
||||
console.log('[app-update] installer output:', output)
|
||||
|
||||
for (const line of lines) {
|
||||
if (line.startsWith('installer:PHASE:')) {
|
||||
message = line.slice('installer:PHASE:'.length).trim() || message
|
||||
@ -293,6 +295,7 @@ const launchMacInstaller = (app, installerPath, webContents) => {
|
||||
}
|
||||
|
||||
const { percent, message } = parseMacInstallerProgress(output)
|
||||
|
||||
sendProgress(webContents, {
|
||||
phase: 'installing',
|
||||
percent: percent ?? 100,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user