修正windows打包路径问题

(cherry picked from commit 3db9d86bcd6f85cf6b81ee27e79a0d2a0f9287ab)
This commit is contained in:
2025-10-29 13:00:22 +08:00
committed by speakeloudest
parent 0449e04f42
commit 11c66d0314
2 changed files with 34 additions and 6 deletions
+26
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
+8 -6
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)