fix: 恢复 UTF-8 BOM 修复中文 Windows 下 PowerShell 5.x 解析错误
PowerShell 5.x 无 BOM 时使用系统默认编码(GBK)解析 .ps1 文件, 导致 UTF-8 中文字符被错误解析、行被合并,触发 MissingCatchOrFinally 错误。 恢复之前被误删的 UTF-8 BOM (EF BB BF) 以确保正确编码识别。
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
# Claude Code Configuration Script for XCodeCLI (Windows)
|
||||
# Claude Code Configuration Script for XCodeCLI (Windows)
|
||||
# This script configures Claude Code to use your XCodeCLI instance
|
||||
# Run with: powershell -ExecutionPolicy Bypass -File setup-claude-code.ps1 -ApiKey YOUR_KEY
|
||||
# Or via one-liner: & { $key='YOUR_KEY'; $f="$env:TEMP\xc.ps1";iwr -useb https://api.xcodecli.com/setup-claude-code.ps1 -OutFile $f;& $f }
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Gemini CLI Configuration Script for XCodeCLI (Windows)
|
||||
# Gemini CLI Configuration Script for XCodeCLI (Windows)
|
||||
# This script configures Gemini CLI to use your XCodeCLI instance
|
||||
# Automatically tests multiple API endpoints and selects the working one
|
||||
# Run with: powershell -ExecutionPolicy Bypass -File setup-gemini.ps1 -ApiKey YOUR_KEY
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Codex Configuration Script for XCodeCLI (Windows)
|
||||
# Codex Configuration Script for XCodeCLI (Windows)
|
||||
# This script configures Codex to use your XCodeCLI instance
|
||||
# Automatically tests multiple API endpoints and selects the working one
|
||||
# Run with: powershell -ExecutionPolicy Bypass -File setup-codex.ps1 -ApiKey YOUR_KEY
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Claude Code Configuration Script for XCodeCLI (Windows)
|
||||
# Claude Code Configuration Script for XCodeCLI (Windows)
|
||||
# This script configures Claude Code to use your XCodeCLI instance
|
||||
# Run with: powershell -ExecutionPolicy Bypass -File setup-claude-code.ps1 -ApiKey YOUR_KEY
|
||||
# Or via one-liner: & { $key='YOUR_KEY'; $f="$env:TEMP\xc.ps1";iwr -useb https://api.xcodecli.com/setup-claude-code.ps1 -OutFile $f;& $f }
|
||||
|
||||
Reference in New Issue
Block a user