fix: no asar support (#4), renamed directories (#5) and check if we need to duplicate asar's (#2) (#8)

* fix: no asar support (#4), renamed directories (#5) and check if we need to duplicate asar's (#1)

* Add missing newline
This commit is contained in:
Niels Leenheer
2020-11-19 18:34:14 +01:00
committed by GitHub
parent 8bb61593b2
commit 82acb6fc72
5 changed files with 53 additions and 30 deletions

7
entry-asar/has-asar.js Normal file
View File

@@ -0,0 +1,7 @@
if (process.arch === 'arm64') {
process._archPath = require.resolve('../app-arm64.asar');
} else {
process._archPath = require.resolve('../app-x64.asar');
}
require(process._archPath);

View File

@@ -1,7 +0,0 @@
if (process.arch === 'arm64') {
process._asarPath = require.resolve('../arm64.app.asar');
} else {
process._asarPath = require.resolve('../x64.app.asar');
}
require(process._asarPath);

7
entry-asar/no-asar.js Normal file
View File

@@ -0,0 +1,7 @@
if (process.arch === 'arm64') {
process._archPath = require.resolve('../app-arm64');
} else {
process._archPath = require.resolve('../app-x64');
}
require(process._archPath);