# Electron [](https://travis-ci.org/atom/atom-shell)
-The Atom Shell framework lets you write cross-platform desktop applications
+The Electron framework lets you write cross-platform desktop applications
using JavaScript, HTML and CSS. It is based on [io.js](http://iojs.org) and
[Chromium](http://www.chromium.org) and is used in the [Atom
editor](https://github.com/atom/atom).
if (process.platform == 'darwin') {
var template = [
{
- label: 'Atom Shell',
+ label: 'Electron',
submenu: [
{
- label: 'About Atom Shell',
+ label: 'About Electron',
selector: 'orderFrontStandardAboutPanel:'
},
{
type: 'separator'
},
{
- label: 'Hide Atom Shell',
+ label: 'Hide Electron',
accelerator: 'Command+H',
selector: 'hide:'
},
<html>
<head>
- <title>Atom Shell</title>
+ <title>Electron</title>
<style>
body {
color: #555;
};
</script>
- <h2 style="-webkit-app-region: drag">Welcome to Atom Shell</h2>
+ <h2 style="-webkit-app-region: drag">Welcome to Electron</h2>
<p>
To run your app with atom-shell, execute the following command under your
{
"name": "atom-shell-default-app",
- "productName": "Atom Shell Default App",
+ "productName": "Electron Default App",
"version": "0.1.0",
"main": "main.js"
}
if (options.Get(switches::kKiosk, &kiosk) && kiosk) {
SetKiosk(kiosk);
}
- std::string title("Atom Shell");
+ std::string title("Electron");
options.Get(switches::kTitle, &title);
SetTitle(title);
#define REFERENCE_MODULE(name) \
extern "C" void _register_ ## name(void); \
void (*fp_register_ ## name)(void) = _register_ ## name
-// Atom Shell's builtin modules.
+// Electron's builtin modules.
REFERENCE_MODULE(atom_browser_app);
REFERENCE_MODULE(atom_browser_auto_updater);
REFERENCE_MODULE(atom_browser_content_tracing);
// main.js
var template = [
{
- label: 'Atom Shell',
+ label: 'Electron',
submenu: [
{
- label: 'About Atom Shell',
+ label: 'About Electron',
selector: 'orderFrontStandardAboutPanel:'
},
{
type: 'separator'
},
{
- label: 'Hide Atom Shell',
+ label: 'Hide Electron',
accelerator: 'Command+H',
selector: 'hide:'
},
If you don't have a Windows installation at the moment,
[modern.ie](https://www.modern.ie/en-us/virtualization-tools#downloads) has
-timebombed versions of Windows that you can use to build Atom Shell.
+timebombed versions of Windows that you can use to build Electron.
The building of atom-shell is done entirely with command-line scripts, so you
can use any editor you like to develop atom-shell, but it also means you can
## Use node-inspector for debugging
-__Note:__ Atom Shell uses node v0.11.13, which currently doesn't work very well
+__Note:__ Electron uses node v0.11.13, which currently doesn't work very well
with node-inspector, and the main process would crash if you inspect the
`process` object under node-inspector's console.
describe 'app.getName()', ->
it 'returns the name field of package.json', ->
- assert.equal app.getName(), 'Atom Shell Test App'
+ assert.equal app.getName(), 'Electron Test App'
describe 'app.setName(name)', ->
it 'overrides the name', ->
- assert.equal app.getName(), 'Atom Shell Test App'
+ assert.equal app.getName(), 'Electron Test App'
app.setName 'test-name'
assert.equal app.getName(), 'test-name'
- app.setName 'Atom Shell Test App'
+ app.setName 'Electron Test App'
{
"name": "atom-shell-specs",
- "productName": "Atom Shell Test App",
+ "productName": "Electron Test App",
"main": "static/main.js",
"version": "0.1.0",
"devDependencies": {