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 percent = null
|
||||||
let message = 'Installing update...'
|
let message = 'Installing update...'
|
||||||
|
|
||||||
|
console.log('[app-update] installer output:', output)
|
||||||
|
|
||||||
for (const line of lines) {
|
for (const line of lines) {
|
||||||
if (line.startsWith('installer:PHASE:')) {
|
if (line.startsWith('installer:PHASE:')) {
|
||||||
message = line.slice('installer:PHASE:'.length).trim() || message
|
message = line.slice('installer:PHASE:'.length).trim() || message
|
||||||
@ -293,6 +295,7 @@ const launchMacInstaller = (app, installerPath, webContents) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const { percent, message } = parseMacInstallerProgress(output)
|
const { percent, message } = parseMacInstallerProgress(output)
|
||||||
|
|
||||||
sendProgress(webContents, {
|
sendProgress(webContents, {
|
||||||
phase: 'installing',
|
phase: 'installing',
|
||||||
percent: percent ?? 100,
|
percent: percent ?? 100,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user