修正windwos打包路径问题
(cherry picked from commit 88df41fe3fd2bb3b0293dc0df178b1e6f83dad07)
This commit is contained in:
@@ -565,6 +565,40 @@ jobs:
|
||||
run: |
|
||||
flutter build windows --release
|
||||
|
||||
- name: 🔍 验证 Windows 文件结构
|
||||
run: |
|
||||
Write-Host "📋 检查 Release 目录文件结构..."
|
||||
|
||||
$releaseDir = "build\windows\x64\runner\Release"
|
||||
if (Test-Path $releaseDir) {
|
||||
Write-Host "✅ Release 目录存在"
|
||||
Write-Host ""
|
||||
Write-Host "📄 文件列表:"
|
||||
Get-ChildItem $releaseDir | Format-Table Name, Length, LastWriteTime
|
||||
|
||||
# 检查关键文件
|
||||
if (Test-Path "$releaseDir\BearVPN.exe") {
|
||||
Write-Host "✅ BearVPN.exe 存在"
|
||||
} else {
|
||||
Write-Host "❌ BearVPN.exe 不存在"
|
||||
}
|
||||
|
||||
if (Test-Path "$releaseDir\BearVPNCli.exe") {
|
||||
Write-Host "✅ BearVPNCli.exe 存在"
|
||||
} else {
|
||||
Write-Host "⚠️ BearVPNCli.exe 不存在"
|
||||
}
|
||||
|
||||
if (Test-Path "$releaseDir\libcore.dll") {
|
||||
Write-Host "✅ libcore.dll 存在"
|
||||
} else {
|
||||
Write-Host "❌ libcore.dll 不存在"
|
||||
}
|
||||
} else {
|
||||
Write-Host "❌ Release 目录不存在"
|
||||
}
|
||||
shell: pwsh
|
||||
|
||||
- name: 📦 打包 Windows
|
||||
shell: bash
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user