ci(workflow): 修复 Windows 构建脚本中的路径分隔符问题
Some checks failed
Build Multi-Platform / 编译 libcore (iOS/tvOS) (push) Failing after 6s
Build Android APK / 编译 libcore.aar (push) Failing after 8s
Build Android APK / 编译 Android APK (release) (push) Has been skipped
Build Multi-Platform / 编译 libcore (Android) (push) Has been cancelled
Build Android APK / 创建 GitHub Release (push) Has been cancelled
Build Multi-Platform / 编译 libcore (Windows) (push) Has been cancelled
Build Multi-Platform / 编译 libcore (macOS) (push) Has been cancelled
Build Multi-Platform / 编译 libcore (Linux) (push) Has been cancelled
Build Multi-Platform / 构建 Android APK (push) Has been cancelled
Build Multi-Platform / 构建 Windows (push) Has been cancelled
Build Multi-Platform / 构建 macOS (push) Has been cancelled
Build Multi-Platform / 构建 Linux (push) Has been cancelled
Build Multi-Platform / 创建 Release (push) Has been cancelled
Build Multi-Platform / 构建 iOS (push) Has been cancelled

This commit is contained in:
shanshanzhong 2025-11-06 17:15:54 -08:00
parent f72ffa6443
commit cc8744a188

View File

@ -125,39 +125,40 @@ jobs:
path: . path: .
- name: 🔧 复制 libcore 文件到正确位置并重命名 - name: 🔧 复制 libcore 文件到正确位置并重命名
run: | shell: pwsh
Write-Host "📋 复制 libcore 文件..." run: |
Write-Host "📋 复制 libcore 文件..."
# 创建目标目录
New-Item -ItemType Directory -Force -Path libcore\bin # 创建目标目录
New-Item -ItemType Directory -Force -Path libcore/bin
# 查找并复制 HiddifyCli.exe重命名为 BearVPNCli.exe
$exeFiles = Get-ChildItem -Recurse -Filter "HiddifyCli.exe" -ErrorAction SilentlyContinue # 查找并复制 HiddifyCli.exe重命名为 BearVPNCli.exe
if ($exeFiles) { $exeFiles = Get-ChildItem -Recurse -Filter "HiddifyCli.exe" -ErrorAction SilentlyContinue
$sourceExe = $exeFiles[0].FullName if ($exeFiles) {
Write-Host "✅ 找到 HiddifyCli.exe: $sourceExe" $sourceExe = $exeFiles[0].FullName
Write-Host "📝 复制并重命名为 BearVPNCli.exe" Write-Host "✅ 找到 HiddifyCli.exe: $sourceExe"
Copy-Item $sourceExe libcore\bin\BearVPNCli.exe Write-Host "📝 复制并重命名为 BearVPNCli.exe"
Write-Host "✅ 重命名完成HiddifyCli.exe → BearVPNCli.exe" Copy-Item $sourceExe libcore/bin/BearVPNCli.exe
} else { Write-Host "✅ 重命名完成HiddifyCli.exe → BearVPNCli.exe"
Write-Host "⚠️ 未找到 HiddifyCli.exe" } else {
} Write-Host "⚠️ 未找到 HiddifyCli.exe"
}
# 复制 libcore.dll
$dllFiles = Get-ChildItem -Recurse -Filter "libcore.dll" -ErrorAction SilentlyContinue # 复制 libcore.dll
if ($dllFiles) { $dllFiles = Get-ChildItem -Recurse -Filter "libcore.dll" -ErrorAction SilentlyContinue
$sourceDll = $dllFiles[0].FullName if ($dllFiles) {
Write-Host "✅ 找到 libcore.dll: $sourceDll" $sourceDll = $dllFiles[0].FullName
Copy-Item $sourceDll libcore\bin\libcore.dll Write-Host "✅ 找到 libcore.dll: $sourceDll"
} else { Copy-Item $sourceDll libcore/bin/libcore.dll
Write-Host "⚠️ 未找到 libcore.dll" } else {
} Write-Host "⚠️ 未找到 libcore.dll"
}
Write-Host ""
Write-Host "📄 验证文件:" Write-Host ""
if (Test-Path libcore\bin) { Write-Host "📄 验证文件:"
Get-ChildItem libcore\bin\ -ErrorAction SilentlyContinue | Format-Table Name, Length if (Test-Path libcore/bin) {
} Get-ChildItem libcore/bin -ErrorAction SilentlyContinue | Format-Table Name, Length
}
- name: Setup Flutter - name: Setup Flutter
uses: subosito/flutter-action@v2 uses: subosito/flutter-action@v2