fix: fetch when building assets

This commit is contained in:
Baptiste Augrain 2024-02-07 03:50:19 +01:00
parent d490b06bdb
commit 8024004702
2 changed files with 11 additions and 1 deletions

View file

@ -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

View file

@ -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