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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user