修正windows打包路径问题

(cherry picked from commit 3db9d86bcd6f85cf6b81ee27e79a0d2a0f9287ab)
This commit is contained in:
Rust 2025-10-29 13:00:22 +08:00 committed by speakeloudest
parent 0449e04f42
commit 11c66d0314
2 changed files with 34 additions and 6 deletions

View File

@ -489,6 +489,32 @@ jobs:
}
shell: pwsh
- name: 🔧 验证 libcore 文件存在
run: |
Write-Host "📋 验证 libcore 文件是否存在..."
if (Test-Path "libcore\bin\libcore.dll") {
$dllInfo = Get-Item "libcore\bin\libcore.dll"
Write-Host "✅ libcore.dll 存在: $($dllInfo.FullName) - 大小: $($dllInfo.Length) bytes"
} else {
Write-Host "❌ libcore.dll 不存在"
Write-Host "当前 libcore\bin 目录内容:"
if (Test-Path "libcore\bin") {
Get-ChildItem "libcore\bin" | Format-Table Name, FullName, Length
} else {
Write-Host "libcore\bin 目录不存在"
}
exit 1
}
if (Test-Path "libcore\bin\BearVPNCli.exe") {
$exeInfo = Get-Item "libcore\bin\BearVPNCli.exe"
Write-Host "✅ BearVPNCli.exe 存在: $($exeInfo.FullName) - 大小: $($exeInfo.Length) bytes"
} else {
Write-Host "⚠️ BearVPNCli.exe 不存在"
}
shell: pwsh
- name: 🔨 构建 Windows (Release)
run: |
flutter build windows --release

View File

@ -94,15 +94,17 @@ install(FILES "${FLUTTER_ICU_DATA_FILE}" DESTINATION "${INSTALL_BUNDLE_DATA_DIR}
install(FILES "${FLUTTER_LIBRARY}" DESTINATION "${INSTALL_BUNDLE_LIB_DIR}"
COMPONENT Runtime)
# libcore.dll
install(FILES "${CMAKE_SOURCE_DIR}/libcore/bin/libcore.dll"
# libcore.dll 使
install(FILES "../libcore/bin/libcore.dll"
DESTINATION "${INSTALL_BUNDLE_LIB_DIR}"
COMPONENT Runtime)
COMPONENT Runtime
OPTIONAL)
# BearVPNCli.exe
install(FILES "${CMAKE_SOURCE_DIR}/libcore/bin/BearVPNCli.exe"
# BearVPNCli.exe 使
install(FILES "../libcore/bin/BearVPNCli.exe"
DESTINATION "${INSTALL_BUNDLE_LIB_DIR}"
COMPONENT Runtime)
COMPONENT Runtime
OPTIONAL)
if(PLUGIN_BUNDLED_LIBRARIES)