From e04c58f39853d6cf2c16f644b991054bcb4fc216 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Tue, 14 Apr 2015 16:09:34 +0800 Subject: [PATCH] mac: Generate Info.plist from gyp variables --- atom.gyp | 7 ++++++- atom/browser/resources/mac/Info.plist | 2 +- atom/common/resources/mac/Info.plist | 6 +++--- atom/renderer/resources/mac/Info.plist | 20 ++++++++++---------- 4 files changed, 20 insertions(+), 15 deletions(-) diff --git a/atom.gyp b/atom.gyp index 3d581e05..541cfa32 100644 --- a/atom.gyp +++ b/atom.gyp @@ -2,7 +2,9 @@ 'variables': { 'project_name%': 'atom', 'product_name%': 'Atom', - 'version%': '0.23.0', + 'company_name%': 'GitHub, Inc', + 'company_abbr%': 'github', + 'version%' : '0.23.0', 'atom_source_root': 'CFBundleExecutable ${PRODUCT_NAME} CFBundleIdentifier - com.github.atom-shell + ${ATOM_BUNDLE_ID} CFBundleInfoDictionaryVersion 6.0 CFBundleName diff --git a/atom/common/resources/mac/Info.plist b/atom/common/resources/mac/Info.plist index 1fe8428e..332babe9 100644 --- a/atom/common/resources/mac/Info.plist +++ b/atom/common/resources/mac/Info.plist @@ -3,11 +3,11 @@ CFBundleExecutable - Atom Framework + ${PRODUCT_NAME} Framework CFBundleIdentifier - com.github.AtomFramework + ${ATOM_BUNDLE_ID} CFBundleName - Atom Framework + ${PRODUCT_NAME} Framework CFBundlePackageType FMWK NSSupportsAutomaticGraphicsSwitching diff --git a/atom/renderer/resources/mac/Info.plist b/atom/renderer/resources/mac/Info.plist index f008a1dc..1da2c29f 100644 --- a/atom/renderer/resources/mac/Info.plist +++ b/atom/renderer/resources/mac/Info.plist @@ -2,15 +2,15 @@ - CFBundleIdentifier - com.github.atom-shell.helper - CFBundleName - ${PRODUCT_NAME} - CFBundlePackageType - APPL - LSUIElement - - NSSupportsAutomaticGraphicsSwitching - + CFBundleIdentifier + ${ATOM_BUNDLE_ID} + CFBundleName + ${PRODUCT_NAME} + CFBundlePackageType + APPL + LSUIElement + + NSSupportsAutomaticGraphicsSwitching + -- 2.43.0