修正windows在线打包

(cherry picked from commit dae69f6c0e25bc1ba80fc1b52bdfbf255f1a5f51)
This commit is contained in:
2025-10-29 11:38:09 +08:00
committed by speakeloudest
parent 8204895199
commit fde4bfa464
2 changed files with 116 additions and 4 deletions
+33 -1
View File
@@ -381,7 +381,39 @@ jobs:
uses: actions/download-artifact@v4
with:
name: libcore-windows
path: libcore/bin/
path: .
- name: 🔧 复制 libcore 文件到正确位置并重命名
shell: bash
run: |
echo "📋 复制 libcore 文件..."
# 确保目标目录存在
mkdir -p libcore/bin
# 复制并重命名文件
if [ -f "HiddifyCli.exe" ]; then
echo "✅ 找到 HiddifyCli.exe,重命名为 BearVPNCli.exe"
cp HiddifyCli.exe libcore/bin/BearVPNCli.exe
fi
if [ -f "libcore.dll" ]; then
echo "✅ 找到 libcore.dll"
cp libcore.dll libcore/bin/
fi
# 如果下载到子目录,也需要处理
if [ -d "libcore-windows" ]; then
if [ -f "libcore-windows/HiddifyCli.exe" ]; then
cp libcore-windows/HiddifyCli.exe libcore/bin/BearVPNCli.exe
fi
if [ -f "libcore-windows/libcore.dll" ]; then
cp libcore-windows/libcore.dll libcore/bin/
fi
fi
echo "📄 验证文件..."
ls -lh libcore/bin/ || echo "目录为空"
- name: ⚙️ 配置 API、OSS 和加密密钥
shell: bash