fix: 将 iwr|iex 替换为 iex(irm) 修复中文乱码
All checks were successful
Deploy to Cloudflare Pages / deploy (push) Successful in 41s
All checks were successful
Deploy to Cloudflare Pages / deploy (push) Successful in 41s
iwr -useb URL | iex 管道传递 response 对象时, ToString() 转换会丢失 Unicode 中文字符。 改用 irm (Invoke-RestMethod) 直接返回字符串内容, 避免对象到字符串的管道转换损坏。
This commit is contained in:
@@ -33,7 +33,7 @@ const copied = ref(false)
|
||||
|
||||
const commands = {
|
||||
bash: `API_KEY='你的密钥' bash -c "$(curl -fsSL https://gitea.sususu.cf/sususu/xcodecli-shells/raw/branch/main/setup.sh)"`,
|
||||
powershell: `$key='你的密钥'; iwr -useb https://gitea.sususu.cf/sususu/xcodecli-shells/raw/branch/main/setup.ps1 | iex`
|
||||
powershell: `$key='你的密钥'; iex (irm https://gitea.sususu.cf/sususu/xcodecli-shells/raw/branch/main/setup.ps1)`
|
||||
}
|
||||
|
||||
function copyCommand() {
|
||||
|
||||
Reference in New Issue
Block a user