Files
core/skills/references/install.md
T
2026-11-03 03:32:07 +00:00

33 lines
1.5 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 安装与环境
开发 Dever 应用只需安装 Dever,底层编译环境由安装包管理。
| 方式 | 用途 |
| --- | --- |
| `bash install` | 先启用 Dever 命令,后台准备编译环境 |
| `bash install --wait` | 等待完整环境就绪,用于 CI 或构建镜像 |
| 完整离线包 | 首次安装就没有外网的环境 |
安装包支持 Linux x86_64、glibc 2.41 及以上。默认目录为 `~/.dever`,支持 `--prefix` 和 `--no-modify-path`。创建、编辑、fmt/check 可先进行,首次 run/test/build 会等待环境就绪;中断后可继续。
同版本重装会复用已有目录。验证重新打包的 0.0.1 时使用新的安装目录。
## 项目规则
新项目执行 `dever new <目录>`。已有项目可在根目录执行:
```sh
dever skill path .
dever skill install
```
path 返回随包 Skill;install 更新项目 AGENTS 的 Dever 标记块,不替换标记外内容。它不切换编译器,也不注册 AI 客户端的原生 Skill。
项目不写 `dever.version`。更换开发环境后检查 `dever --version` 和 Skill 路径;依赖版本保留在 `dever.lock`。
## 目标与依赖
用 `dever package` 管理 Dever 组件,`dever lib install <root>` 恢复已锁定资源。当前 CLI 没有 Lib add/update;新锁和外部运行资源需由发行方准备,不能伪造锁或借用系统解释器。
`build --target linux-x86_64|linux-aarch64` 选择目标。交叉构建须预备目标库、链接器和 sysroot;run/test 在本机执行。