feat(chrome-qwen-bridge): 🔥 init chrome qwen code bridge

This commit is contained in:
yiliang114
2025-12-20 00:58:41 +08:00
parent a92be72e88
commit a60c5c6697
57 changed files with 9489 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
#!/bin/bash
# Native Host 包装脚本 - 确保 Node.js 环境正确设置
# 获取脚本所在目录
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
# 设置 Node.js 路径 (使用系统中的 node)
NODE_PATH="/usr/local/bin/node"
# 如果 /usr/local/bin/node 不存在,尝试其他位置
if [ ! -f "$NODE_PATH" ]; then
NODE_PATH=$(which node)
fi
# 执行 Native Host
exec "$NODE_PATH" "$DIR/host.js"