PRODUCT_NAME => ATOM_PRODUCT_NAME

This commit is contained in:
Cheng Zhao 2015-04-14 14:13:03 +08:00
parent a72c7b38a5
commit c20dc06c96
4 changed files with 9 additions and 8 deletions

View file

@ -29,7 +29,7 @@ int AtomInitializeICUandStartNode(int argc, char *argv[]) {
brightray::MainApplicationBundlePath()
.Append("Contents")
.Append("Frameworks")
.Append(PRODUCT_NAME " Framework.framework"));
.Append(ATOM_PRODUCT_NAME " Framework.framework"));
base::i18n::InitializeICU();
return atom::NodeMain(argc, argv);
}

View file

@ -33,12 +33,13 @@ base::FilePath GetHeleprAppPath(const base::FilePath& frameworks_path,
void AtomMainDelegate::OverrideFrameworkBundlePath() {
base::mac::SetOverrideFrameworkBundlePath(
GetFrameworksPath().Append(PRODUCT_NAME " Framework.framework"));
GetFrameworksPath().Append(ATOM_PRODUCT_NAME " Framework.framework"));
}
void AtomMainDelegate::OverrideChildProcessPath() {
base::FilePath frameworks_path = GetFrameworksPath();
base::FilePath helper_path = GetHeleprAppPath(frameworks_path, PRODUCT_NAME);
base::FilePath helper_path = GetHeleprAppPath(frameworks_path,
ATOM_PRODUCT_NAME);
if (!base::PathExists(helper_path))
helper_path = GetHeleprAppPath(frameworks_path,
brightray::GetApplicationName());