diff --git a/default_app/main.js b/default_app/main.js index a26e18b4cbf7..344633cecfed 100644 --- a/default_app/main.js +++ b/default_app/main.js @@ -335,8 +335,10 @@ if (option.file && !option.webdriver) { } else if (option.interactive) { startRepl() } else { - const welcomeMessage = `Electron ${process.versions.electron} - Build cross platform desktop apps with JavaScript, HTML, and CSS + const welcomeMessage = ` + Deprecation Warning: To render the default app, the -d or --default flags will soon need to be used. + Electron ${process.versions.electron} - Build cross platform desktop apps with JavaScript, HTML, and CSS Usage: electron [options] [path] A path to an Electron app may be specified. It must be one of the following: @@ -351,6 +353,9 @@ if (option.file && !option.webdriver) { -i, --interactive Open a REPL to the main process. -r, --require Module to preload (option can be repeated) -v, --version Print the version.` + console.log(welcomeMessage) + const indexPath = path.join(__dirname, '/index.html') + loadApplicationByUrl(`file://${indexPath}`) process.exit(0) } diff --git a/default_app/renderer.js b/default_app/renderer.js index d2d4c1ddc0ea..92e5530ada1a 100644 --- a/default_app/renderer.js +++ b/default_app/renderer.js @@ -19,5 +19,4 @@ document.querySelector('.electron-version').innerText = `Electron v${process.ver document.querySelector('.chrome-version').innerText = `Chromium v${process.versions.chrome}` document.querySelector('.node-version').innerText = `Node v${process.versions.node}` document.querySelector('.v8-version').innerText = `v8 v${process.versions.v8}` - document.querySelector('.command-example').innerText = `${electronPath} path-to-app`