fix: 修复 importSessions 中 result 变量重复声明导致编译失败

This commit is contained in:
thzxx
2026-04-07 02:10:01 +08:00
parent 0a476365b2
commit 4dcbb4f1e9
3 changed files with 33 additions and 5 deletions
+28
View File
@@ -0,0 +1,28 @@
#!/bin/bash
set -e
PROJECT="/root/.openclaw/workspace/metona-ollama"
cd "$PROJECT"
echo "===== [1/6] 安装 Wine ====="
dpkg --add-architecture i386
apt-get update -qq 2>/dev/null || sed -i 's|http://mirrors.cloud.aliyuncs.com/ubuntu|http://archive.ubuntu.com/ubuntu|g' /etc/apt/sources.list && apt-get update -qq
apt-get install -y -qq wine wine32 2>&1 | tail -3
echo "Wine 安装完成: $(wine --version 2>/dev/null || echo 'installed')"
echo ""
echo "===== [2/6] 安装 npm 依赖 ====="
cd "$PROJECT"
npm config set registry https://registry.npmmirror.com
npm install 2>&1 | tail -5
echo "npm install 完成"
echo ""
echo "===== [3/6] 构建 Windows 安装包 ====="
ELECTRON_MIRROR=https://npmmirror.com/mirrors/electron/ npm run dist 2>&1 | tail -20
echo ""
echo "构建产物:"
ls -lh "$PROJECT/release/"*.exe 2>/dev/null || echo "未找到 exe 文件"
echo ""
echo "===== BUILD SCRIPT DONE ====="