@delta-infra/cli 1.0.95 → 1.0.96

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -73,9 +73,11 @@ Remove-Item -Path delta-cli.zip
73
73
  # 将 delta-cli.exe 放到 PATH 中的目录
74
74
  ```
75
75
 
76
- ### 方式三:一键安装脚本(国内用户推荐)
76
+ ### 方式三:一键安装脚本(国内用户推荐 / 无 npm 也可用)
77
77
 
78
- 安装脚本会自动尝试国内 npm 镜像(npmmirror),失败后再回退到 npm 官方源:
78
+ 安装脚本会**自动检测环境**:
79
+ - **已有 npm** → 安装 `@delta-infra/cli` npm 包(自动尝试国内 npm 镜像 npmmirror,失败回退 npm 官方源)
80
+ - **没有 npm** → 直接通过纯 shell 方式下载二进制(PowerShell + curl / bash + curl + tar,Windows 10+、macOS、Linux 均自带),**无需安装 Node.js/npm**
79
81
 
80
82
  ```bash
81
83
  # Linux / macOS
@@ -85,6 +87,8 @@ curl -L https://raw.githubusercontent.com/yzailab/delta-infra-cli/main/install.s
85
87
  Invoke-RestMethod -Uri https://raw.githubusercontent.com/yzailab/delta-infra-cli/main/install.ps1 | Invoke-Expression
86
88
  ```
87
89
 
90
+ 脚本下载二进制时会按顺序尝试国内加速镜像(`gh.ddlc.top`、`ghproxy.net`、`gh-proxy.com`),全部失败再用 GitHub 源站,且会校验 SHA-256。可用 `DELTA_CLI_VERSION` 环境变量指定版本。
91
+
88
92
  ### 方式四:npm
89
93
 
90
94
  ```bash
@@ -93,9 +97,9 @@ npm install -g @delta-infra/cli
93
97
 
94
98
  `postinstall` 会按以下顺序尝试下载当前平台的二进制:
95
99
 
96
- 1. `DELTA_CLI_MIRROR` 环境变量(如果设置)
97
- 2. 国内加速镜像 `https://gh-proxy.com/https://github.com/...`
98
- 3. GitHub 源站 `https://github.com/yzailab/delta-infra-cli/releases/download/...`
100
+ 1. `DELTA_CLI_MIRROR` 环境变量指定的镜像(如果设置,需为 HTTPS 且允许全前缀格式,如 `https://gh.ddlc.top`)
101
+ 2. 依次探测国内加速镜像 `gh.ddlc.top`、`ghproxy.net`、`gh-proxy.com`,可用的优先
102
+ 3. GitHub 源站 `https://github.com/yzailab/delta-infra-cli/releases/download/...`(兜底)
99
103
 
100
104
  如果安装时下载失败,可以:
101
105
 
@@ -110,7 +114,7 @@ DELTA_CLI_ARCHIVE=/path/to/delta-cli-linux-amd64.tar.gz npm install -g @delta-in
110
114
 
111
115
  | 变量 | 说明 |
112
116
  |------|------|
113
- | `DELTA_CLI_MIRROR` | 下载镜像,例如 `https://gh-proxy.com/https://github.com`。只接受 HTTPS 且需在白名单内。 |
117
+ | `DELTA_CLI_MIRROR` | 下载镜像根地址,例如 `https://gh.ddlc.top`。脚本会自动补全为全前缀格式(`<mirror>/https://github.com/...`)。只接受 HTTPS 且需在白名单内。 |
114
118
  | `DELTA_CLI_MIRROR_ALLOWLIST` | 额外允许的主机列表,逗号分隔。 |
115
119
  | `DELTA_CLI_ARCHIVE` | 指向预先下载好的 `.tar.gz` / `.zip` 本地路径,跳过网络下载。 |
116
120
  | `DELTA_CLI_SKIP_POSTINSTALL` | 设置为 `1` 跳过安装时的二进制下载,之后由 `delta-cli` 运行时兜底。 |
package/checksums.txt CHANGED
@@ -1,5 +1,5 @@
1
- 0b9863b2c604158b04f5684d664fea330bff12fec612e2cafbab41e0f2803d5a delta-cli-darwin-amd64.tar.gz
2
- f5e1af65d56e92d1d85f1819170e9c9d4b9a91b486554ea18bc6d321d9a4b11a delta-cli-darwin-arm64.tar.gz
3
- 61164a36cbee95f1afb8f9aae8ac68f1247bd1b305004389c27142a337e8a58d delta-cli-linux-amd64.tar.gz
4
- a440b6a8c1d55b4c8135f0200969b40e91462819d2a92f2549219fd51cc89bf8 delta-cli-linux-arm64.tar.gz
5
- 819126d165bdf8f34f187b498e5ce7e029a68f20c3c392422c1ffd7fe9d891ad delta-cli-windows-amd64.zip
1
+ af6912b03e0311132006e11347039feec80625cb78009605f73634cca4ea6f81 delta-cli-darwin-amd64.tar.gz
2
+ bde40f2b408370e4ba4e7ab2db27e667252b0fffa170eb50a2ffbf6faddcb891 delta-cli-darwin-arm64.tar.gz
3
+ c4ba50ce8b6d0085d101b1e87ac2f26e100dc669efde17702d278f0be5674832 delta-cli-linux-amd64.tar.gz
4
+ d6845091f519d360fa8c5de540ff5728e90da3511a780ba2e3fd09bce62cee28 delta-cli-linux-arm64.tar.gz
5
+ 732de5321a1b4ace79a546bc0ca2c8dfefeef9ae9c97d3f26cf92f832d5e4905 delta-cli-windows-amd64.zip
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@delta-infra/cli",
3
- "version": "1.0.95",
3
+ "version": "1.0.96",
4
4
  "description": "Delta Infra CLI for sandbox compute and science tools.",
5
5
  "bin": {
6
6
  "delta-cli": "scripts/run.js"