mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-23 03:06:38 +00:00
Document that ELECTRON_RUN_AS_NODE doesn't load app.asar by default (#375)
Signed-off-by: Juan Cruz Viotti <jviottidc@gmail.com>
This commit is contained in:
parent
e7760e253f
commit
d7ce744e26
@ -17,8 +17,14 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
// See http://electron.atom.io/docs/v0.37.7/api/environment-variables/#electronrunasnode
|
// See http://electron.atom.io/docs/v0.37.7/api/environment-variables/#electronrunasnode
|
||||||
|
//
|
||||||
|
// Notice that if running electron with `ELECTRON_RUN_AS_NODE`, the binary
|
||||||
|
// *won't* attempt to load the `app.asar` application by default, therefore
|
||||||
|
// if passing `ELECTRON_RUN_AS_NODE`, you have to pass the path to the asar
|
||||||
|
// or the entry point file (this file) manually as an argument.
|
||||||
if (process.env.ELECTRON_RUN_AS_NODE) {
|
if (process.env.ELECTRON_RUN_AS_NODE) {
|
||||||
require('./cli/etcher');
|
require('./cli/etcher');
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
require('./gui/etcher');
|
require('./gui/etcher');
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user