]> khamidou — GitHub mirrors - electron.git/commitdiff
Make product_name and project_name configurable
authorCheng Zhao <zcbenz@gmail.com>
Mon, 29 Dec 2014 17:51:47 +0000 (09:51 -0800)
committerCheng Zhao <zcbenz@gmail.com>
Mon, 29 Dec 2014 17:51:47 +0000 (09:51 -0800)
Now users can make use of GYP_DEFINES to custom application name:

export GYP_DEFINES="product_name=MyApp project_name=myapp"
./script/update.py
./script/build.py -C Release -t myapp

atom.gyp

index 8f0e9b04026b217c14098b0fd42b4200c1bd0368..0caf2f227f3d9e2642727602c8ee2e5d2e8ba274 100644 (file)
--- a/atom.gyp
+++ b/atom.gyp
@@ -3,8 +3,8 @@
     'includes': [
       'vendor/native_mate/native_mate_files.gypi',
     ],
-    'project_name': 'atom',
-    'product_name': 'Atom',
+    'project_name%': 'atom',
+    'product_name%': 'Atom',
     'app_sources': [
       'atom/app/atom_main.cc',
       'atom/app/atom_main.h',