fix: Windows encoding (UTF-8 BOM + CRLF) and macOS Gatekeeper

- Windows bat files: UTF-8 BOM + CRLF + English text to avoid garbled Chinese in cmd.exe
- macOS scripts: xattr -rd com.apple.quarantine to fix "unverified developer" popup
- New install scripts: Mac-安装并启动.command, Windows-安装并启动.bat
  (extract tar.gz to local disk then launch)
This commit is contained in:
dongsheng123132
2026-03-10 18:43:58 +08:00
parent fc725247d1
commit 6f7af5fa49
5 changed files with 266 additions and 88 deletions

View File

@@ -39,6 +39,11 @@ export OPENCLAW_CONFIG_PATH="$PORTABLE_CONFIG_PATH"
mkdir -p "$PORTABLE_STATE_DIR"
# 移除 macOS 隔离标记(解决"无法验证开发者"弹窗)
if xattr -l "$NODE_BIN" 2>/dev/null | grep -q "com.apple.quarantine"; then
xattr -rd com.apple.quarantine "$UCLAW_DIR" 2>/dev/null || true
fi
# 检查安装状态
check_status() {
HAS_MODULES="no"