docs: add platform and runtime fields
This commit is contained in:
@@ -21,7 +21,8 @@ name: 套件名称
|
||||
description: 功能描述
|
||||
version: 1.0.0
|
||||
author: 作者
|
||||
slug: my-suite-en-name # 可选,英文包名。不传则自动转拼音
|
||||
platform: all # 运行平台: linux / windows / all
|
||||
slug: my-suite-en-name # 可选,英文包名。不传则自动转拼音
|
||||
tags: [标签1]
|
||||
category: 业务分类
|
||||
|
||||
@@ -31,12 +32,12 @@ params:
|
||||
required: true
|
||||
desc: 输入文件路径
|
||||
|
||||
base_image: gis-base:latest
|
||||
base_image: gis-base:latest # 仅 Docker 模式需要
|
||||
|
||||
steps:
|
||||
- id: step1
|
||||
name: 步骤1
|
||||
type: python
|
||||
runtime: python3 # docker / python3 / arcpy
|
||||
script_id: run
|
||||
params:
|
||||
input: $params.input_path
|
||||
@@ -86,6 +87,14 @@ curl -s https://suites.mercator.cn/api/v1/suites | python3 -m json.tool
|
||||
找到现成的套件 → 直接使用,不写新代码。
|
||||
找不到 → 写新脚本 → 发布套件 → 方便后续者复用。
|
||||
|
||||
### platform 字段说明
|
||||
|
||||
- all(默认):全平台兼容,任何客户端都能下载
|
||||
- linux:仅 Linux Docker 环境
|
||||
- windows:仅 Windows 本机环境(arcpy)
|
||||
|
||||
套件列表和详情页会显示平台标签(Linux / Windows / All)。
|
||||
|
||||
## 发布流程
|
||||
|
||||
### 前置条件
|
||||
|
||||
Reference in New Issue
Block a user