update electron to v43
All checks were successful
Android Build / publish (push) Successful in 55s
Linux Build / publish (push) Successful in 1m6s

This commit is contained in:
olcxja 2026-07-09 22:38:33 +02:00
commit fb6c8b6ee9
5385 changed files with 513060 additions and 123058 deletions

27
electron/node_modules/@electron/rebuild/lib/fetcher.js generated vendored Normal file
View file

@ -0,0 +1,27 @@
import debug from 'debug';
import { setTimeout as sleep } from 'node:timers/promises';
const d = debug('electron-rebuild');
export async function fetchUrl(url, responseType, retries = 3) {
if (retries === 0)
throw new Error('Failed to fetch a clang resource, run with DEBUG=electron-rebuild for more information');
d('downloading:', url);
try {
const response = await globalThis.fetch(url);
if (!response.ok) {
d('got bad status code:', response.status);
await sleep(2000);
return fetchUrl(url, responseType, retries - 1);
}
d('response came back OK');
if (responseType === 'buffer') {
return Buffer.from(await response.arrayBuffer());
}
return (await response.text());
}
catch (err) {
d('request failed for some reason', err);
await sleep(2000);
return fetchUrl(url, responseType, retries - 1);
}
}
//# sourceMappingURL=fetcher.js.map