diff --git a/README.md b/README.md index 9b66a0ac3dc31..7b582e6201cf7 100644 --- a/README.md +++ b/README.md @@ -1,25 +1,14 @@ -# Atom Shell [![Build Status](https://travis-ci.org/atom/atom-shell.svg?branch=master)](https://travis-ci.org/atom/atom-shell) +# Electron [![Build Status](https://travis-ci.org/atom/electron.svg?branch=master)](https://travis-ci.org/atom/electron) -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). ## Downloads -Prebuilt binaries and debug symbols of atom-shell for Linux, Windows and Mac can -be found on the [releases](https://github.com/atom/atom-shell/releases) page. - -You can also use [`npm`](https://docs.npmjs.com/) to install prebuilt atom-shell -binaries: - -``` -# Install globally in your $PATH -npm install atom-shell -g - -# Install as a development dependency -npm install atom-shell --save-dev -``` +Prebuilt binaries and debug symbols of Electron for Linux, Windows and Mac can +be found on the [releases](https://github.com/atom/electron/releases) page. ### Mirrors @@ -28,8 +17,8 @@ npm install atom-shell --save-dev ## Documentation Guides and the API reference are located in the -[docs](https://github.com/atom/atom-shell/tree/master/docs) directory. It also -contains documents describing how to build and contribute to atom-shell. +[docs](https://github.com/atom/electron/tree/master/docs) directory. It also +contains documents describing how to build and contribute to Electron. ## Community diff --git a/atom.gyp b/atom.gyp index f516a0dd1c1c5..80b3f80b4f2f4 100644 --- a/atom.gyp +++ b/atom.gyp @@ -1,8 +1,10 @@ { 'variables': { - 'project_name%': 'atom', - 'product_name%': 'Atom', - 'version%': '0.23.0', + 'project_name%': 'electron', + 'product_name%': 'Electron', + 'company_name%': 'GitHub, Inc', + 'company_abbr%': 'github', + 'version%' : '0.23.0', 'atom_source_root': ')delegate]; - base::FilePath frameworkPath = brightray::MainApplicationBundlePath() - .Append("Contents") - .Append("Frameworks") - .Append(PRODUCT_NAME " Framework.framework"); - NSBundle* frameworkBundle = [NSBundle - bundleWithPath:base::mac::FilePathToNSString(frameworkPath)]; + NSBundle* frameworkBundle = base::mac::FrameworkBundle(); NSNib* mainNib = [[NSNib alloc] initWithNibNamed:@"MainMenu" bundle:frameworkBundle]; [mainNib instantiateWithOwner:application topLevelObjects:nil]; diff --git a/atom/browser/browser_linux.cc b/atom/browser/browser_linux.cc index 7534aa2182d9b..ea8fb7c10c5dd 100644 --- a/atom/browser/browser_linux.cc +++ b/atom/browser/browser_linux.cc @@ -9,6 +9,7 @@ #include "atom/browser/native_window.h" #include "atom/browser/window_list.h" #include "atom/common/atom_version.h" +#include "brightray/common/application_info.h" namespace atom { @@ -31,11 +32,11 @@ void Browser::ClearRecentDocuments() { } std::string Browser::GetExecutableFileVersion() const { - return ATOM_VERSION_STRING; + return brightray::GetApplicationVersion(); } std::string Browser::GetExecutableFileProductName() const { - return "Atom-Shell"; + return brightray::GetApplicationName(); } } // namespace atom diff --git a/atom/browser/browser_mac.mm b/atom/browser/browser_mac.mm index 06c2b43477996..2353aa6c42c3c 100644 --- a/atom/browser/browser_mac.mm +++ b/atom/browser/browser_mac.mm @@ -4,13 +4,13 @@ #include "atom/browser/browser.h" -#import "atom/browser/mac/atom_application.h" -#import "atom/browser/mac/atom_application_delegate.h" +#include "atom/browser/mac/atom_application.h" +#include "atom/browser/mac/atom_application_delegate.h" #include "atom/browser/native_window.h" #include "atom/browser/window_list.h" -#import "base/mac/bundle_locations.h" -#import "base/mac/foundation_util.h" +#include "base/mac/foundation_util.h" #include "base/strings/sys_string_conversions.h" +#include "brightray/common/application_info.h" namespace atom { @@ -27,15 +27,11 @@ } std::string Browser::GetExecutableFileVersion() const { - NSDictionary* infoDictionary = base::mac::OuterBundle().infoDictionary; - NSString *version = [infoDictionary objectForKey:@"CFBundleVersion"]; - return base::SysNSStringToUTF8(version); + return brightray::GetApplicationVersion(); } std::string Browser::GetExecutableFileProductName() const { - NSDictionary* infoDictionary = base::mac::OuterBundle().infoDictionary; - NSString *version = [infoDictionary objectForKey:@"CFBundleName"]; - return base::SysNSStringToUTF8(version); + return brightray::GetApplicationName(); } int Browser::DockBounce(BounceType type) { diff --git a/atom/browser/browser_win.cc b/atom/browser/browser_win.cc index 211a1ebf63df4..b861af945421a 100644 --- a/atom/browser/browser_win.cc +++ b/atom/browser/browser_win.cc @@ -118,7 +118,7 @@ void Browser::SetUserTasks(const std::vector& tasks) { } void Browser::SetAppUserModelID(const std::string& name) { - app_user_model_id_ = base::string16(L"atom-shell.app."); + app_user_model_id_ = base::string16(L"electron.app."); app_user_model_id_ += base::UTF8ToUTF16(name); SetCurrentProcessExplicitAppUserModelID(app_user_model_id_.c_str()); } @@ -142,7 +142,7 @@ std::string Browser::GetExecutableFileProductName() const { return base::UTF16ToUTF8(version_info->product_name()); } - return "Atom-Shell"; + return ATOM_PRODUCT_NAME; } } // namespace atom diff --git a/atom/browser/default_app/default_app.js b/atom/browser/default_app/default_app.js index ee5e5733e1de6..dffe03c628e10 100644 --- a/atom/browser/default_app/default_app.js +++ b/atom/browser/default_app/default_app.js @@ -25,10 +25,10 @@ app.on('ready', function() { if (process.platform == 'darwin') { var template = [ { - label: 'Atom Shell', + label: 'Electron', submenu: [ { - label: 'About Atom Shell', + label: 'About Electron', selector: 'orderFrontStandardAboutPanel:' }, { @@ -42,7 +42,7 @@ app.on('ready', function() { type: 'separator' }, { - label: 'Hide Atom Shell', + label: 'Hide Electron', accelerator: 'Command+H', selector: 'hide:' }, diff --git a/atom/browser/default_app/index.html b/atom/browser/default_app/index.html index 83b5122782fee..96e45806d5dd3 100644 --- a/atom/browser/default_app/index.html +++ b/atom/browser/default_app/index.html @@ -1,6 +1,6 @@ - Atom Shell + Electron