From 8024004702ee392c3755e87580d8d42d452115ef Mon Sep 17 00:00:00 2001 From: Baptiste Augrain Date: Wed, 7 Feb 2024 03:50:19 +0100 Subject: [PATCH] fix: fetch when building assets --- patches/linux/use-node16.patch | 8 ++++++++ prepare_vscode.sh | 4 +++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/patches/linux/use-node16.patch b/patches/linux/use-node16.patch index 9a4ba09..9e55daf 100644 --- a/patches/linux/use-node16.patch +++ b/patches/linux/use-node16.patch @@ -6,6 +6,14 @@ index ba23e78..9b8a5a1 100644 const through2 = require("through2"); +const fetch = require("node-fetch"); function fetchUrls(urls, options) { +diff --git a/build/linux/debian/install-sysroot.js b/build/linux/debian/install-sysroot.js +index 40ca42e..3276167 100644 +--- a/build/linux/debian/install-sysroot.js ++++ b/build/linux/debian/install-sysroot.js +@@ -14,2 +14,3 @@ const crypto_1 = require("crypto"); + const ansiColors = require("ansi-colors"); ++const fetch = require("node-fetch"); + // Based on https://source.chromium.org/chromium/chromium/src/+/main:build/linux/sysroot_scripts/install-sysroot.py. diff --git a/remote/.yarnrc b/remote/.yarnrc index adbe2d2..dfc3bd7 100644 --- a/remote/.yarnrc diff --git a/prepare_vscode.sh b/prepare_vscode.sh index 9bfeb5f..882c965 100755 --- a/prepare_vscode.sh +++ b/prepare_vscode.sh @@ -62,7 +62,9 @@ export PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 if [[ "${OS_NAME}" == "linux" ]]; then export VSCODE_SKIP_NODE_VERSION_CHECK=1 - mv ../.nvmrc.linux ../.nvmrc + if [[ -f "../.nvmrc.linux" ]]; then + mv ../.nvmrc.linux ../.nvmrc + fi for file in ../patches/linux/*.patch; do if [[ -f "${file}" ]]; then