From d2ab8322b7bc36c3c5cc90140c98e7cb38115160 Mon Sep 17 00:00:00 2001 From: Max Graey Date: Sat, 2 May 2015 01:28:17 +0700 Subject: [PATCH 1/2] update using-native-node-modules doc --- docs/tutorial/using-native-node-modules.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/tutorial/using-native-node-modules.md b/docs/tutorial/using-native-node-modules.md index b03fea134e39..628933856092 100644 --- a/docs/tutorial/using-native-node-modules.md +++ b/docs/tutorial/using-native-node-modules.md @@ -25,13 +25,13 @@ where to download headers and which version to use: ```bash $ cd /path-to-module/ -$ HOME=~/.electron-gyp node-gyp rebuild --target=0.16.0 --arch=ia32 --dist-url=https://atom.io/download/atom-shell +$ HOME=~/.electron-gyp node-gyp rebuild --target=0.25.0 --arch=ia64 --dist-url=https://atom.io/download/electron ``` The `HOME=~/.electron-gyp` changes where to find development headers. The -`--target=0.16.0` is version of Electron. The `--dist-url=...` specifies -where to download the headers. The `--arch=ia32` says the module is built for -32bit system. +`--target=0.25.0` is version of Electron. The `--dist-url=...` specifies +where to download the headers. The `--arch=ia64` says the module is built for +64bit system. ### The npm way @@ -39,8 +39,8 @@ You can also use `npm` to install modules, the steps are exactly the same with Node modules, except that you need to setup some environment variables: ```bash -export npm_config_disturl=https://atom.io/download/atom-shell -export npm_config_target=0.23.0 +export npm_config_disturl=https://atom.io/download/electron +export npm_config_target=0.25.0 export npm_config_arch=x64 HOME=~/.electron-gyp npm install module-name ``` From 6842ac98c3ed010cf2547ae080bb38cae958fad9 Mon Sep 17 00:00:00 2001 From: Max Graey Date: Mon, 4 May 2015 10:13:43 +0700 Subject: [PATCH 2/2] revert changes of dist url --- docs/tutorial/using-native-node-modules.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/tutorial/using-native-node-modules.md b/docs/tutorial/using-native-node-modules.md index 628933856092..95192aee0a1b 100644 --- a/docs/tutorial/using-native-node-modules.md +++ b/docs/tutorial/using-native-node-modules.md @@ -25,7 +25,7 @@ where to download headers and which version to use: ```bash $ cd /path-to-module/ -$ HOME=~/.electron-gyp node-gyp rebuild --target=0.25.0 --arch=ia64 --dist-url=https://atom.io/download/electron +$ HOME=~/.electron-gyp node-gyp rebuild --target=0.25.0 --arch=ia64 --dist-url=https://atom.io/download/atom-shell ``` The `HOME=~/.electron-gyp` changes where to find development headers. The @@ -39,7 +39,7 @@ You can also use `npm` to install modules, the steps are exactly the same with Node modules, except that you need to setup some environment variables: ```bash -export npm_config_disturl=https://atom.io/download/electron +export npm_config_disturl=https://atom.io/download/atom-shell export npm_config_target=0.25.0 export npm_config_arch=x64 HOME=~/.electron-gyp npm install module-name