cyanteam package manager · v0.1.0
# macOS / Linux
curl -fsSL https://cyp.cyteam.cc.cd/install.sh | bash
# Windows (PowerShell)
Invoke-WebRequest -Uri https://cyp.cyteam.cc.cd/install.ps1 -OutFile install.ps1; .\install.ps1
# npm
npm install -g cyp
| 命令 | 别名 | 说明 |
|---|---|---|
install | i, inst | 安装包 |
remove | rm | 删除包 |
list | ls | 列出已安装的包 |
search | s | 搜索远程仓库 |
update | up | 更新包或自身 |
pack | p | 打包目录为 .cyp |
unpack | u | 拆包 .cyp 到目录 |
create | c | 交互式创建新包 |
parse | info | 解析包信息 |
run | r | 直接运行包命令 |
包目录中放置 _CYPPACKAGE.TOML:
name = "myapp"
name_cn = "我的应用"
version = "1.0.0"
package_id = "us.cyteam.myapp"
language = "node"
architecture = "any"
[config_command]
common = "node main.js"
macosarm64 = "myapp"
linux64 = "./myapp"
依赖声明 _CYPREQUIRE.TOML:
[[dependency]]
name = "node"
type = "runtime"
check_command = "node -v"