docs: add Windows install and dual-platform usage
This commit is contained in:
+11
-11
@@ -6,22 +6,18 @@
|
|||||||
|
|
||||||
### 安装 gis-actions
|
### 安装 gis-actions
|
||||||
|
|
||||||
|
**Linux:**
|
||||||
```bash
|
```bash
|
||||||
# 下载最新版
|
|
||||||
curl -sLO https://packages.mercator.cn/public/gis-actions/latest.deb
|
curl -sLO https://packages.mercator.cn/public/gis-actions/latest.deb
|
||||||
|
|
||||||
# 安装
|
|
||||||
sudo dpkg -i latest.deb
|
sudo dpkg -i latest.deb
|
||||||
|
|
||||||
# 确认安装成功
|
|
||||||
agc --help
|
agc --help
|
||||||
```
|
```
|
||||||
|
|
||||||
### 确认 Docker 可用
|
**Windows:**
|
||||||
|
1. 下载 [latest-windows.zip](https://packages.mercator.cn/public/gis-actions/latest-windows.zip)
|
||||||
```bash
|
2. 解压到 `%LOCALAPPDATA%\AgentGIS\gis-actions\`
|
||||||
docker ps
|
3. 将路径加入 `PATH`
|
||||||
```
|
4. 验证:`agc --help`
|
||||||
|
|
||||||
### 配置 API Key
|
### 配置 API Key
|
||||||
|
|
||||||
@@ -30,7 +26,7 @@ docker ps
|
|||||||
1. 登录 https://auth.mercator.cn,创建 API Key
|
1. 登录 https://auth.mercator.cn,创建 API Key
|
||||||
2. 运行 `agc config set api_key <你的 API Key>`
|
2. 运行 `agc config set api_key <你的 API Key>`
|
||||||
|
|
||||||
## 首次执行 `agc run` 时会自动下载 gis-base 运行镜像。
|
## Linux 版首次执行 `agc run` 时会自动下载 gis-base 运行镜像。Windows 版不需要镜像。
|
||||||
|
|
||||||
## 遇到问题?
|
## 遇到问题?
|
||||||
|
|
||||||
@@ -41,7 +37,11 @@ docker ps
|
|||||||
### 1. 查市场,选套件
|
### 1. 查市场,选套件
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
# 所有套件(Linux + Windows)
|
||||||
curl -s https://suites.mercator.cn/api/v1/suites | python3 -m json.tool
|
curl -s https://suites.mercator.cn/api/v1/suites | python3 -m json.tool
|
||||||
|
|
||||||
|
# 仅 Windows 套件
|
||||||
|
curl -s 'https://suites.mercator.cn/api/v1/suites?platform=windows' | python3 -m json.tool
|
||||||
```
|
```
|
||||||
|
|
||||||
记下你要用的套件 ID。
|
记下你要用的套件 ID。
|
||||||
|
|||||||
Reference in New Issue
Block a user