From 3bb8cfe72364d87f20865dd72b6bce1c166d0acb Mon Sep 17 00:00:00 2001 From: joohwan Date: Mon, 27 Jul 2026 10:41:06 +0800 Subject: [PATCH 1/3] fix: use official Windows installer source --- skills/ucloud-sandbox-site/references/windows.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/skills/ucloud-sandbox-site/references/windows.md b/skills/ucloud-sandbox-site/references/windows.md index b1ff448..d971ec7 100644 --- a/skills/ucloud-sandbox-site/references/windows.md +++ b/skills/ucloud-sandbox-site/references/windows.md @@ -35,7 +35,7 @@ if (Get-Command npm -ErrorAction SilentlyContinue) { if (-not (Get-Command ucloud-sandbox-cli -CommandType Application -ErrorAction SilentlyContinue)) { [Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor [Net.SecurityProtocolType]::Tls12 - $InstallerUrl = "https://raw.githubusercontent.com/Piwriw/ucloud-sandbox-cli/feat/windows/install.ps1" + $InstallerUrl = "https://raw.githubusercontent.com/ucloud/ucloud-sandbox-cli/main/install.ps1" & ([scriptblock]::Create((Invoke-RestMethod -Uri $InstallerUrl -UseBasicParsing -ErrorAction Stop))) } From 2eafeac6b1aae62f721771bacad47cf1d45eef75 Mon Sep 17 00:00:00 2001 From: joohwan Date: Mon, 27 Jul 2026 11:02:36 +0800 Subject: [PATCH 2/3] fix: add Windows installer fallback guidance --- skills/ucloud-sandbox-site/references/windows.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/skills/ucloud-sandbox-site/references/windows.md b/skills/ucloud-sandbox-site/references/windows.md index d971ec7..ee6768e 100644 --- a/skills/ucloud-sandbox-site/references/windows.md +++ b/skills/ucloud-sandbox-site/references/windows.md @@ -43,7 +43,7 @@ ucloud-sandbox-cli version if ($LASTEXITCODE -ne 0) { throw "ucloud-sandbox-cli verification failed." } ``` -安装脚本默认安装到 `%LOCALAPPDATA%\Programs\ucloud-sandbox-cli`,并更新当前进程和用户 `PATH`。不要自动更新已经可正常运行的 CLI。 +安装脚本默认安装到 `%LOCALAPPDATA%\Programs\ucloud-sandbox-cli`,并更新当前进程和用户 `PATH`;不要自动更新已经可正常运行的 CLI。如果上述 PowerShell 安装流程失败,保留原始错误并主动查找其他可行安装方式,例如从官方 Release 手动下载与当前架构匹配的 ZIP;先向用户说明方案来源、操作、安装位置和风险,仅在用户明确同意后执行。替代方案只使用 `ucloud/ucloud-sandbox-cli` 官方仓库或官方 Release,并保持 TLS、证书和证书吊销校验;不要关闭安全校验、绕过系统安全策略或改用未经用户确认的第三方来源。若失败源于代理、证书或管理员权限,让用户在真实终端或由管理员处理。完成后确认 `Get-Command ucloud-sandbox-cli -CommandType Application` 和 `ucloud-sandbox-cli version` 均成功,且用户 `PATH` 已包含安装目录;否则不要继续连接站点。 ## 设置站点凭证并验证连接 From 7bb76768231a41403be746004665ab7a32936d80 Mon Sep 17 00:00:00 2001 From: joohwan Date: Mon, 27 Jul 2026 11:05:00 +0800 Subject: [PATCH 3/3] fix: refactor windows installer --- skills/ucloud-sandbox-site/references/windows.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/skills/ucloud-sandbox-site/references/windows.md b/skills/ucloud-sandbox-site/references/windows.md index ee6768e..76fe2e8 100644 --- a/skills/ucloud-sandbox-site/references/windows.md +++ b/skills/ucloud-sandbox-site/references/windows.md @@ -43,7 +43,8 @@ ucloud-sandbox-cli version if ($LASTEXITCODE -ne 0) { throw "ucloud-sandbox-cli verification failed." } ``` -安装脚本默认安装到 `%LOCALAPPDATA%\Programs\ucloud-sandbox-cli`,并更新当前进程和用户 `PATH`;不要自动更新已经可正常运行的 CLI。如果上述 PowerShell 安装流程失败,保留原始错误并主动查找其他可行安装方式,例如从官方 Release 手动下载与当前架构匹配的 ZIP;先向用户说明方案来源、操作、安装位置和风险,仅在用户明确同意后执行。替代方案只使用 `ucloud/ucloud-sandbox-cli` 官方仓库或官方 Release,并保持 TLS、证书和证书吊销校验;不要关闭安全校验、绕过系统安全策略或改用未经用户确认的第三方来源。若失败源于代理、证书或管理员权限,让用户在真实终端或由管理员处理。完成后确认 `Get-Command ucloud-sandbox-cli -CommandType Application` 和 `ucloud-sandbox-cli version` 均成功,且用户 `PATH` 已包含安装目录;否则不要继续连接站点。 +安装脚本默认安装到 `%LOCALAPPDATA%\Programs\ucloud-sandbox-cli`,并更新当前进程和用户 `PATH`;不要自动更新已经可正常运行的 CLI。 +如果上述 PowerShell 安装流程失败,保留原始错误并主动查找其他可行安装方式,例如从官方 Release 手动下载与当前架构匹配的 ZIP;先向用户说明方案来源、操作、安装位置和风险,仅在用户明确同意后执行。替代方案只使用 `ucloud/ucloud-sandbox-cli` 官方仓库或官方 Release,并保持 TLS、证书和证书吊销校验;不要关闭安全校验、绕过系统安全策略或改用未经用户确认的第三方来源。若失败源于代理、证书或管理员权限,让用户在真实终端或由管理员处理。完成后确认 `ucloud-sandbox-cli version` 成功,且用户 `PATH` 已包含安装目录;否则不要继续连接站点。 ## 设置站点凭证并验证连接