Browse Source

update install docs

ruki 6 years ago
parent
commit
f224c1d503
2 changed files with 13 additions and 5 deletions
  1. 6 2
      guide/installation.md
  2. 7 3
      zh-cn/guide/installation.md

+ 6 - 2
guide/installation.md

@@ -1,5 +1,7 @@
 ## Master
 
+!> Note! xmake is not recommended to install under root!
+
 ### via curl
 
 ```bash
@@ -65,7 +67,8 @@ Under the termux of Android, usually only need to execute the above one-click in
 ```bash
 $ git clone --recursive https://github.com/xmake-io/xmake.git
 $ cd ./xmake
-$ ./scripts/get.sh __local__
+$ make build
+$ ./scripts/get.sh __local__ __install_only__
 $ source ~/.xmake/profile
 ```
 
@@ -84,7 +87,8 @@ If you forget to add `--recursive` when git clone, you can also execute `git sub
 $ git clone https://github.com/xmake-io/xmake.git
 $ cd ./xmake
 $ git submodule update --init
-$ ./scripts/get.sh __local__
+$ make build
+$ ./scripts/get.sh __local__ __install_only__
 ```
 
 !> `./get.sh __local__` is installed to `~/.local/xmake`, and then loaded by `source ~/.xmake/profile`, so after the installation, the current terminal fails to execute xmake, If the prompt is not found, manually execute `source ~/.xmake/profile`, and the next time you open the terminal, you don't need it.

+ 7 - 3
zh-cn/guide/installation.md

@@ -1,6 +1,8 @@
 
 ## Master版本
 
+!> 切记,xmake不建议在root下安装和使用,所以尽量不要在root下拉取源码编译安装!
+
 ### 使用curl
 
 ```bash
@@ -77,12 +79,13 @@ Android的termux下,通常只需要执行上面的一键安装脚本即可,
 
 ### 安装
 
-!> 切记,xmake不建议在root下安装,所以尽量不要在root下拉取源码编译安装!
+!> 切记,xmake不建议在root下安装和使用,所以尽量不要在root下拉取源码编译安装!
 
 ```bash
 $ git clone --recursive https://github.com/xmake-io/xmake.git
 $ cd ./xmake
-$ ./scripts/get.sh __local__
+$ make build
+$ ./scripts/get.sh __local__ __install_only__
 $ source ~/.xmake/profile
 ```
 
@@ -96,7 +99,8 @@ $ source ~/.xmake/profile
 $ git clone https://github.com/xmake-io/xmake.git
 $ cd ./xmake
 $ git submodule update --init
-$ ./scripts/get.sh __local__
+$ make build
+$ ./scripts/get.sh __local__ __install_only__
 ```
 
 !> `./get.sh __local__`是安装到`~/.local/xmake`下,然后通过`source ~/.xmake/profile`方式来加载的,所以安装完,当前终端如果执行xmake失败,提示找不到,就手动执行下 `source ~/.xmake/profile`,而下次打开终端就不需要了。