update electron to v43
This commit is contained in:
parent
68ac0beedf
commit
fb6c8b6ee9
5385 changed files with 513060 additions and 123058 deletions
24
electron/node_modules/@electron/rebuild/lib/detect-libc.js
generated
vendored
Normal file
24
electron/node_modules/@electron/rebuild/lib/detect-libc.js
generated
vendored
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
let cached;
|
||||
/**
|
||||
* Detects the libc family on the current Linux host via `process.report`.
|
||||
*
|
||||
* Used to resolve the `{libc}` token in prebuilt binary path templates.
|
||||
*
|
||||
* @returns `'glibc'` | `'musl'` | `null` (non-Linux or unable to detect)
|
||||
*/
|
||||
export function detectLibcFamily() {
|
||||
if (cached !== undefined)
|
||||
return cached;
|
||||
if (process.platform !== 'linux')
|
||||
return (cached = null);
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
const report = process.report?.getReport();
|
||||
if (report?.header?.glibcVersionRuntime)
|
||||
return (cached = 'glibc');
|
||||
if (Array.isArray(report?.sharedObjects) &&
|
||||
report.sharedObjects.some((s) => s.includes('libc.musl') || s.includes('ld-musl'))) {
|
||||
return (cached = 'musl');
|
||||
}
|
||||
return (cached = null);
|
||||
}
|
||||
//# sourceMappingURL=detect-libc.js.map
|
||||
Loading…
Add table
Add a link
Reference in a new issue