summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2023-01-11 22:32:52 +0800
committerruki <[email protected]>2023-01-11 22:32:52 +0800
commita4e7ecaa3920b2fd4928ed95f5f97361be45c354 (patch)
tree01dc100e6802dbbf23b67a7b5220c24d0e68616f
parentf75c8f8efd93e6b7616a38a582cf1c51b6652e3a (diff)
update readme
-rw-r--r--README.md10
-rw-r--r--README_zh.md10
2 files changed, 16 insertions, 4 deletions
diff --git a/README.md b/README.md
index 68d6b9dc9..c9add85fe 100644
--- a/README.md
+++ b/README.md
@@ -113,11 +113,17 @@ If you don't want to use the script to install xmake, see [Installation Guide](h
## Simple description
-<img src="https://xmake.io/assets/img/index/showcode1.png" width="340px" />
+```lua
+target("hello")
+ set_kind("binary")
+ add_files("src/*.cpp")
+```
## Package dependences
-<img src="https://xmake.io/assets/img/index/add_require.png" width="600px" />
+```lua
+add_requires("tbox 1.6.*", "zlib", "libpng ~1.6")
+```
An official xmake package repository exists at: [xmake-repo](https://github.com/xmake-io/xmake-repo)
diff --git a/README_zh.md b/README_zh.md
index 49eb8293c..6643770ea 100644
--- a/README_zh.md
+++ b/README_zh.md
@@ -121,11 +121,17 @@ Invoke-Expression (Invoke-Webrequest 'https://xmake.io/psget.text' -UseBasicPars
## 简单的工程描述
-<img src="https://xmake.io/assets/img/index/showcode1.png" width="340px" />
+```lua
+target("hello")
+ set_kind("binary")
+ add_files("src/*.cpp")
+```
## 包依赖描述
-<img src="https://xmake.io/assets/img/index/add_require.png" width="600px" />
+```lua
+add_requires("tbox 1.6.*", "zlib", "libpng ~1.6")
+```
官方的xmake包管理仓库: [xmake-repo](https://github.com/xmake-io/xmake-repo)