diff --git a/electron/main/utils/process.ts b/electron/main/utils/process.ts index df1d0043c..c8647e686 100644 --- a/electron/main/utils/process.ts +++ b/electron/main/utils/process.ts @@ -221,7 +221,7 @@ export async function cleanupOldVenvs(currentVersion: string): Promise { export async function isBinaryExists(name: string): Promise { const cmd = await getBinaryPath(name); - return await fs.existsSync(cmd); + return fs.existsSync(cmd); } /** diff --git a/resources/scripts/download.js b/resources/scripts/download.js index 5245ea211..2b980c51e 100644 --- a/resources/scripts/download.js +++ b/resources/scripts/download.js @@ -10,7 +10,7 @@ import fs from 'fs' */ export async function downloadWithRedirects(url, destinationPath) { return new Promise((resolve, reject) => { - const timeoutMs = 5 * 60 * 1000; // 10 minutes + const timeoutMs = 10 * 60 * 1000; // 10 minutes const timeout = setTimeout(() => { reject(new Error(`timeout(${timeoutMs / 1000} seconds)`)); }, timeoutMs);