mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-07-07 13:25:18 +02:00
Increase node download timeout
This commit is contained in:
@@ -4,7 +4,7 @@ const Downloader = require('nodejs-file-downloader');
|
|||||||
const { rmSync, cpSync, mkdirSync, existsSync } = require('node:fs');
|
const { rmSync, cpSync, mkdirSync, existsSync } = require('node:fs');
|
||||||
const { execSync } = require('node:child_process');
|
const { execSync } = require('node:child_process');
|
||||||
|
|
||||||
const NODE_VERSION = 'v22.5.1';
|
const NODE_VERSION = 'v22.9.0';
|
||||||
|
|
||||||
// `${process.platform}_${process.arch}`
|
// `${process.platform}_${process.arch}`
|
||||||
const MAC_ARM = 'darwin_arm64';
|
const MAC_ARM = 'darwin_arm64';
|
||||||
@@ -53,7 +53,12 @@ rmSync(tmpDir, { recursive: true, force: true });
|
|||||||
|
|
||||||
(async function () {
|
(async function () {
|
||||||
// Download GitHub release artifact
|
// Download GitHub release artifact
|
||||||
const { filePath } = await new Downloader({ url, directory: tmpDir }).download();
|
console.log('Downloading NodeJS at', url);
|
||||||
|
const { filePath } = await new Downloader({
|
||||||
|
url,
|
||||||
|
directory: tmpDir,
|
||||||
|
timeout: 1000 * 60 * 2,
|
||||||
|
}).download();
|
||||||
|
|
||||||
// Decompress to the same directory
|
// Decompress to the same directory
|
||||||
await decompress(filePath, tmpDir, {});
|
await decompress(filePath, tmpDir, {});
|
||||||
|
|||||||
Reference in New Issue
Block a user