Private
Public Access
1
0

fix: 改用下载到文件再执行,修复中文乱码
Some checks failed
Deploy to Cloudflare Pages / deploy (push) Failing after 11s

根因: irm/iwr 文本解码时将 UTF-8 中文替换为 ?,
字符串在进入 iex 之前就已损坏。
改用 iwr -OutFile 写入原始字节到临时文件再执行,
绕过文本解码链路,彻底修复编码问题。
This commit is contained in:
2026-02-28 17:43:02 +08:00
parent b07c61aa9d
commit f1ab858212
13 changed files with 14 additions and 14 deletions

View File

@@ -254,7 +254,7 @@ Interactive mode (no arguments):
.\setup-gemini.ps1
One-liner:
`$key='YOUR_API_KEY'; iex (irm https://your-domain.tld/setup-gemini.ps1)
`$key='YOUR_API_KEY'; $f="$env:TEMP\xc.ps1";iwr -useb https://your-domain.tld/setup-gemini.ps1 -OutFile $f;& $f
PowerShell Execution Policy:
If you get an execution policy error, run: