fix: make irm|iex bootstrap download manage.ps1

Top-level param()/CmdletBinding breaks Invoke-Expression; install.ps1 is now a thin launcher.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
owo
2026-08-14 17:57:21 +08:00
co-authored by Cursor
parent 4ac16aa82f
commit 5da901711d
3 changed files with 407 additions and 370 deletions
+9
View File
@@ -37,12 +37,21 @@ Telegram **手机遥控器** for DeepSeek Harness:附着本机正在跑的 Web
irm https://raw.githubusercontent.com/hi-wenw/dsh-telegram-channel/master/scripts/install.ps1 | iex
```
> `install.ps1` 是引导脚本(兼容 `irm | iex`),会再下载并运行真正的菜单 `manage.ps1`。
> 不要直接 `irm .../manage.ps1 | iex`(带 `param` 会报错)。
**CMD 一键:**
```bat
powershell -NoProfile -ExecutionPolicy Bypass -Command "irm https://raw.githubusercontent.com/hi-wenw/dsh-telegram-channel/master/scripts/install.ps1 | iex"
```
备用(先下载再执行):
```bat
powershell -NoProfile -ExecutionPolicy Bypass -Command "iwr -UseBasicParsing https://raw.githubusercontent.com/hi-wenw/dsh-telegram-channel/master/scripts/manage.ps1 -OutFile $env:TEMP\dsh-tg.ps1; & $env:TEMP\dsh-tg.ps1"
```
启动后用**数字**选择:
```