063ac19712
* chore: bump node in DEPS to v16.4.2 * chore: update patches * ci: run main and remote woa tests separately * chore: bump node in DEPS to v16.5.0 * build: restore libplatform headers in distribution https://github.com/nodejs/node/pull/39288 * build: pass directory instead of list of files to js2c.py https://github.com/nodejs/node/pull/39069 * chore: various BoringSSL/OpenSSL upstreams - https://github.com/nodejs/node/pull/39136 - https://github.com/nodejs/node/pull/39138 - https://github.com/nodejs/node/pull/39054 * test: move debugger test case to parallel https://github.com/nodejs/node/pull/39300 * chore: fixup patch indices * build: pass directory instead of list of files to js2c.py https://github.com/nodejs/node/pull/39069 Co-authored-by: electron-roller[bot] <84116207+electron-roller[bot]@users.noreply.github.com> Co-authored-by: PatchUp <73610968+patchup[bot]@users.noreply.github.com> Co-authored-by: John Kleinschmidt <jkleinsc@electronjs.org> Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
30 lines
1,022 B
Diff
30 lines
1,022 B
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Shelley Vohr <shelley.vohr@gmail.com>
|
|
Date: Thu, 13 Sep 2018 08:56:07 -0700
|
|
Subject: feat: initialize asar support
|
|
|
|
This patch initializes asar support in Node.js.
|
|
|
|
diff --git a/lib/internal/bootstrap/pre_execution.js b/lib/internal/bootstrap/pre_execution.js
|
|
index 3b69844dc4ea0c4e17a74ea514c4f0dc390e3a61..c90a19d5eed72a55cb9ee89dd2471a32a30c1377 100644
|
|
--- a/lib/internal/bootstrap/pre_execution.js
|
|
+++ b/lib/internal/bootstrap/pre_execution.js
|
|
@@ -75,6 +75,7 @@ function prepareMainThreadExecution(expandArgv1 = false) {
|
|
assert(!CJSLoader.hasLoadedAnyUserCJSModule);
|
|
loadPreloadModules();
|
|
initializeFrozenIntrinsics();
|
|
+ setupAsarSupport();
|
|
}
|
|
|
|
function patchProcessObject(expandArgv1) {
|
|
@@ -475,6 +476,10 @@ function loadPreloadModules() {
|
|
}
|
|
}
|
|
|
|
+function setupAsarSupport() {
|
|
+ process._linkedBinding('electron_common_asar').initAsarSupport(require);
|
|
+}
|
|
+
|
|
module.exports = {
|
|
patchProcessObject,
|
|
setupCoverageHooks,
|