make DependenciesSetupProgressIndicatorDialog support execute more than 1 tasks (pervious support download puppeteer only)

This commit is contained in:
bossgeekgo
2024-02-20 01:35:17 +08:00
parent 001a903259
commit 831dbadc74
6 changed files with 89 additions and 42 deletions
+4 -1
View File
@@ -130,7 +130,10 @@ export function createMainWindow(): void {
})
ipcMain.handle('check-dependencies', async () => {
return await checkPuppeteerExecutable()
const [puppeteerExecutableAvailable] = await Promise.all([checkPuppeteerExecutable()])
return {
puppeteerExecutableAvailable
}
})
let subProcessOfCheckAndDownloadDependencies: ChildProcess | null = null