]> khamidou — GitHub mirrors - electron.git/commitdiff
mac: Generate Info.plist from gyp variables
authorCheng Zhao <zcbenz@gmail.com>
Tue, 14 Apr 2015 08:09:34 +0000 (16:09 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Tue, 14 Apr 2015 08:09:34 +0000 (16:09 +0800)
atom.gyp
atom/browser/resources/mac/Info.plist
atom/common/resources/mac/Info.plist
atom/renderer/resources/mac/Info.plist

index 3d581e052208fc7c6852edb771102b0bf154e849..541cfa3294bb8c5f80d06826ebce0a3edf12c4f2 100644 (file)
--- 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': '<!(["python", "tools/atom_source_root.py"])',
   },
@@ -45,6 +47,7 @@
             '<(project_name)_helper',
           ],
           'xcode_settings': {
+            'ATOM_BUNDLE_ID': 'com.<(company_abbr).<(project_name)',
             'INFOPLIST_FILE': 'atom/browser/resources/mac/Info.plist',
             'LD_RUNPATH_SEARCH_PATHS': [
               '@executable_path/../Frameworks',
             '<(libchromiumcontent_dir)/snapshot_blob.bin',
           ],
           'xcode_settings': {
+            'ATOM_BUNDLE_ID': 'com.<(company_abbr).<(project_name).framework',
             'INFOPLIST_FILE': 'atom/common/resources/mac/Info.plist',
             'LD_DYLIB_INSTALL_NAME': '@rpath/<(product_name) Framework.framework/<(product_name) Framework',
             'LD_RUNPATH_SEARCH_PATHS': [
           ],
           'mac_bundle': 1,
           'xcode_settings': {
+            'ATOM_BUNDLE_ID': 'com.<(company_abbr).<(project_name).helper',
             'INFOPLIST_FILE': 'atom/renderer/resources/mac/Info.plist',
             'LD_RUNPATH_SEARCH_PATHS': [
               '@executable_path/../../..',
index 9dc1a43d0db7600c216506bf1d0bad652b0df8ba..69045f7a8d1a1dff4c042754e5114b6fb9e03cf6 100644 (file)
@@ -7,7 +7,7 @@
   <key>CFBundleExecutable</key>
   <string>${PRODUCT_NAME}</string>
   <key>CFBundleIdentifier</key>
-  <string>com.github.atom-shell</string>
+  <string>${ATOM_BUNDLE_ID}</string>
   <key>CFBundleInfoDictionaryVersion</key>
   <string>6.0</string>
   <key>CFBundleName</key>
index 1fe8428e489bd383e80649cbe1dc84d105d3c8b5..332babe979e66ab9cef5ef6c32d201ad7cb363cd 100644 (file)
@@ -3,11 +3,11 @@
 <plist version="1.0">
 <dict>
        <key>CFBundleExecutable</key>
-       <string>Atom Framework</string>
+       <string>${PRODUCT_NAME} Framework</string>
        <key>CFBundleIdentifier</key>
-       <string>com.github.AtomFramework</string>
+       <string>${ATOM_BUNDLE_ID}</string>
        <key>CFBundleName</key>
-       <string>Atom Framework</string>
+       <string>${PRODUCT_NAME} Framework</string>
        <key>CFBundlePackageType</key>
        <string>FMWK</string>
        <key>NSSupportsAutomaticGraphicsSwitching</key>
index f008a1dcad5e899e4f7b2af2309bb489b52833c7..1da2c29fd9ca2138134e5cf2db2da57aba31f35c 100644 (file)
@@ -2,15 +2,15 @@
 <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
 <plist version="1.0">
 <dict>
-       <key>CFBundleIdentifier</key>
-       <string>com.github.atom-shell.helper</string>
-       <key>CFBundleName</key>
-       <string>${PRODUCT_NAME}</string>
-       <key>CFBundlePackageType</key>
-       <string>APPL</string>
-       <key>LSUIElement</key>
-       <true/>
-       <key>NSSupportsAutomaticGraphicsSwitching</key>
-       <true/>
+  <key>CFBundleIdentifier</key>
+  <string>${ATOM_BUNDLE_ID}</string>
+  <key>CFBundleName</key>
+  <string>${PRODUCT_NAME}</string>
+  <key>CFBundlePackageType</key>
+  <string>APPL</string>
+  <key>LSUIElement</key>
+  <true/>
+  <key>NSSupportsAutomaticGraphicsSwitching</key>
+  <true/>
 </dict>
 </plist>