From d7ce744e26ca3ff90b9f9d2deabd1a14b7e4cea9 Mon Sep 17 00:00:00 2001 From: Juan Cruz Viotti Date: Wed, 27 Apr 2016 14:24:32 -0400 Subject: [PATCH] Document that ELECTRON_RUN_AS_NODE doesn't load app.asar by default (#375) Signed-off-by: Juan Cruz Viotti --- lib/start.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/start.js b/lib/start.js index 66437924..4abbfa77 100644 --- a/lib/start.js +++ b/lib/start.js @@ -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'); }