feat: initialize asar support
This commit is contained in:
Родитель
1545fedf9e
Коммит
673addcceb
|
@ -42,6 +42,8 @@ function startup() {
|
|||
|
||||
setupGlobalVariables();
|
||||
|
||||
setupAsarSupport();
|
||||
|
||||
// Bootstrappers for all threads, including worker threads and main thread
|
||||
const perThreadSetup = NativeModule.require('internal/process/per_thread');
|
||||
// Bootstrappers for the main thread only
|
||||
|
@ -657,6 +659,10 @@ function setupProcessICUVersions() {
|
|||
}
|
||||
}
|
||||
|
||||
function setupAsarSupport() {
|
||||
process._linkedBinding('atom_common_asar').initAsarSupport(NativeModule._source, NativeModule.require);
|
||||
}
|
||||
|
||||
function wrapForBreakOnFirstLine(source) {
|
||||
if (!process._breakFirstLine)
|
||||
return source;
|
||||
|
|
Загрузка…
Ссылка в новой задаче