mirror of
https://github.com/balena-io/etcher.git
synced 2025-04-24 07:17:18 +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';
|
||||
|
||||
// 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) {
|
||||
require('./cli/etcher');
|
||||
|
||||
} else {
|
||||
require('./gui/etcher');
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user