mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-19 01:06:36 +00:00
Use the same entrypoint for etcher and the child writer
Changelog-entry: Use the same entrypoint for etcher and the child writer Change-type: patch
This commit is contained in:
parent
1be1a2b8f7
commit
1098f8cb1e
@ -22,12 +22,9 @@
|
|||||||
// *won't* attempt to load the `app.asar` application by default, therefore
|
// *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
|
// 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.
|
// or the entry point file (this file) manually as an argument.
|
||||||
//
|
|
||||||
// We also consider `ATOM_SHELL_INTERNAL_RUN_AS_NODE`, which is basically
|
if (process.env.ELECTRON_RUN_AS_NODE) {
|
||||||
// an older equivalent of `ELECTRON_RUN_AS_NODE` that still gets set when
|
|
||||||
// using `child_process.fork()`.
|
|
||||||
if (process.env.ELECTRON_RUN_AS_NODE || process.env.ATOM_SHELL_INTERNAL_RUN_AS_NODE) {
|
|
||||||
require('./gui/modules/child-writer')
|
require('./gui/modules/child-writer')
|
||||||
} else {
|
} else {
|
||||||
require('../generated/etcher')
|
require('./gui/etcher')
|
||||||
}
|
}
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
"sleepDays": 7,
|
"sleepDays": 7,
|
||||||
"semverRange": "<2.0.0"
|
"semverRange": "<2.0.0"
|
||||||
},
|
},
|
||||||
"main": "lib/start.js",
|
"main": "generated/etcher.js",
|
||||||
"description": "Flash OS images to SD cards and USB drives, safely and easily.",
|
"description": "Flash OS images to SD cards and USB drives, safely and easily.",
|
||||||
"productDescription": "Etcher is a powerful OS image flasher built with web technologies to ensure flashing an SDCard or USB drive is a pleasant and safe experience. It protects you from accidentally writing to your hard-drives, ensures every byte of data was written correctly and much more.",
|
"productDescription": "Etcher is a powerful OS image flasher built with web technologies to ensure flashing an SDCard or USB drive is a pleasant and safe experience. It protects you from accidentally writing to your hard-drives, ensures every byte of data was written correctly and much more.",
|
||||||
"homepage": "https://github.com/balena-io/etcher",
|
"homepage": "https://github.com/balena-io/etcher",
|
||||||
|
@ -145,7 +145,7 @@ const etcherConfig = _.assign({
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
entry: {
|
entry: {
|
||||||
etcher: path.join(__dirname, 'lib', 'gui', 'etcher.js')
|
etcher: path.join(__dirname, 'lib', 'start.js')
|
||||||
},
|
},
|
||||||
output: {
|
output: {
|
||||||
path: path.join(__dirname, 'generated'),
|
path: path.join(__dirname, 'generated'),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user