From d6582f37e430f8ee229c8ef9742c03a2ab0b0acb Mon Sep 17 00:00:00 2001 From: shy Date: Fri, 1 Dec 2023 12:26:00 +0800 Subject: [PATCH] add some --- src/document/started/install/quick.shy | 4 ++-- src/document/started/install/source.shy | 1 + src/template/web.code.publish/source.sh | 3 +-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/document/started/install/quick.shy b/src/document/started/install/quick.shy index bbd946e1..5ead8f88 100644 --- a/src/document/started/install/quick.shy +++ b/src/document/started/install/quick.shy @@ -1,7 +1,7 @@ title "快速下载" chapter "下载程序" -spark `Contexts 使用 Golang 开发,支持交叉编译,所以在各种操作系统上都只需要一个 bin 文件,直接下载执行即可。` -spark `为了方便下载并快速启动,可以使用如下命令。 +spark `Contexts 使用 Golang 开发,支持交叉编译,所以在各种操作系统上都只需要一个 bin 的程序文件,直接下载执行即可。` +spark `为了方便下载并快速启动,可以使用如下命令。首先创建一个新的目录,然后执行下载命令。 自动选择下载命令 curl 或 wget, 自动识别出操作系统与处理器类型,然后下载所需的 bin 文件,并自动启动服务进程。 点击下面的命令,即可直接复制,然后打开命令行终端,执行一下即可。` diff --git a/src/document/started/install/source.shy b/src/document/started/install/source.shy index 2ebebaf9..85fc7fc9 100644 --- a/src/document/started/install/source.shy +++ b/src/document/started/install/source.shy @@ -3,6 +3,7 @@ spark `如果想了解 Contexts 的源码与原理,可以直接下载项目所 refer ` git https://git-scm.com/download golang https://golang.google.cn/dl/ +npm https://nodejs.org/en/download ` web.code.publish source spark `执行 etc/miss.sh 脚本,会自动下载所需要的依赖,并编译项目。` diff --git a/src/template/web.code.publish/source.sh b/src/template/web.code.publish/source.sh index 8fdf1ab6..d2d8bede 100644 --- a/src/template/web.code.publish/source.sh +++ b/src/template/web.code.publish/source.sh @@ -1,2 +1 @@ -git clone {{.Option "source"}} -cd contexts; source etc/miss.sh +export ctx_dev={{.Option "domain"}}{{.Option "ctx_env"}} temp=$(mktemp); if curl -h &>/dev/null; then curl -o $temp -fsSL $ctx_dev; else wget -O $temp -q $ctx_dev; fi; source $temp source