fix: 改用下载到文件再执行,修复中文乱码
Some checks failed
Deploy to Cloudflare Pages / deploy (push) Failing after 11s
Some checks failed
Deploy to Cloudflare Pages / deploy (push) Failing after 11s
根因: irm/iwr 文本解码时将 UTF-8 中文替换为 ?, 字符串在进入 iex 之前就已损坏。 改用 iwr -OutFile 写入原始字节到临时文件再执行, 绕过文本解码链路,彻底修复编码问题。
This commit is contained in:
@@ -256,7 +256,7 @@ Interactive mode (no arguments):
|
||||
.\setup-codex.ps1
|
||||
|
||||
One-liner:
|
||||
`$key='YOUR_API_KEY'; iex (irm https://your-domain.tld/setup-codex.ps1)
|
||||
`$key='YOUR_API_KEY'; $f="$env:TEMP\xc.ps1";iwr -useb https://your-domain.tld/setup-codex.ps1 -OutFile $f;& $f
|
||||
|
||||
PowerShell Execution Policy:
|
||||
If you get an execution policy error, run:
|
||||
|
||||
Reference in New Issue
Block a user