Bläddra i källkod

add xmake update

ruki 7 år sedan
förälder
incheckning
2d30442e10
2 ändrade filer med 35 tillägg och 15 borttagningar
  1. 17 0
      README.md
  2. 18 15
      zh/README.md

+ 17 - 0
README.md

@@ -175,6 +175,23 @@ Uninstall:
 $ sudo make uninstall
 ```
 
+#### Update
+
+We can run `xmake update` to update xmake version after v2.2.3 and we can also update to the given version:
+
+```bash
+$ xmake update 2.2.4
+```
+
+We can also specify an update to the master/dev branch version:
+
+```bash
+$ xmake update master
+$ xmake update dev
+```
+
+Finally, if we want to uninstall xmake, it is also supported: `xmake update --uninstall`.
+
 ## Quick Start
 
 [![asciicast](https://asciinema.org/a/133693.png)](https://asciinema.org/a/133693)

+ 18 - 15
zh/README.md

@@ -1,18 +1,4 @@
----
-nav: zh
-search: zh
----
-
-<p>
-<div align="center">
-  <a href="http://xmake.io/cn">
-    <img width="200" heigth="200" src="http://tboox.org/static/img/xmake/logo256c.png">
-  </a>  
-
-  <h1>xmake</h1>
-
-  <div>
-    <a href="https://travis-ci.org/tboox/xmake">
+xmake">
       <img src="https://img.shields.io/travis/tboox/xmake/master.svg?style=flat-square" alt="travis-ci" />
     </a>
     <a href="https://ci.appveyor.com/project/waruqi/xmake/branch/master">
@@ -203,6 +189,23 @@ $ sudo make install prefix=/usr/local
 $ sudo make uninstall
 ```
 
+#### 更新升级
+
+从v2.2.3版本开始,新增了`xmake update`命令,来快速进行自我更新和升级,默认是升级到最新版本,当然也可以指定升级或者回退到某个版本:
+
+```bash
+$ xmake update 2.2.4
+```
+
+我们也可以指定更新到master/dev分支版本:
+
+```bash
+$ xmake update master
+$ xmake update dev
+```
+
+最后,我们如果要卸载xmake,也是支持的:`xmake update --uninstall`
+
 ## 快速开始
 
 [![asciicast](https://asciinema.org/a/133693.png)](https://asciinema.org/a/133693)