修正windows打包路径问题
(cherry picked from commit 3db9d86bcd6f85cf6b81ee27e79a0d2a0f9287ab)
This commit is contained in:
parent
0449e04f42
commit
11c66d0314
26
.github/workflows/build-multiplatform.yml
vendored
26
.github/workflows/build-multiplatform.yml
vendored
@ -489,6 +489,32 @@ jobs:
|
|||||||
}
|
}
|
||||||
shell: pwsh
|
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)
|
- name: 🔨 构建 Windows (Release)
|
||||||
run: |
|
run: |
|
||||||
flutter build windows --release
|
flutter build windows --release
|
||||||
|
|||||||
@ -94,15 +94,17 @@ install(FILES "${FLUTTER_ICU_DATA_FILE}" DESTINATION "${INSTALL_BUNDLE_DATA_DIR}
|
|||||||
install(FILES "${FLUTTER_LIBRARY}" DESTINATION "${INSTALL_BUNDLE_LIB_DIR}"
|
install(FILES "${FLUTTER_LIBRARY}" DESTINATION "${INSTALL_BUNDLE_LIB_DIR}"
|
||||||
COMPONENT Runtime)
|
COMPONENT Runtime)
|
||||||
|
|
||||||
# 安装 libcore.dll 到可执行文件目录
|
# 安装 libcore.dll 到可执行文件目录(使用相对路径)
|
||||||
install(FILES "${CMAKE_SOURCE_DIR}/libcore/bin/libcore.dll"
|
install(FILES "../libcore/bin/libcore.dll"
|
||||||
DESTINATION "${INSTALL_BUNDLE_LIB_DIR}"
|
DESTINATION "${INSTALL_BUNDLE_LIB_DIR}"
|
||||||
COMPONENT Runtime)
|
COMPONENT Runtime
|
||||||
|
OPTIONAL)
|
||||||
|
|
||||||
# 安装 BearVPNCli.exe 到可执行文件目录
|
# 安装 BearVPNCli.exe 到可执行文件目录(使用相对路径)
|
||||||
install(FILES "${CMAKE_SOURCE_DIR}/libcore/bin/BearVPNCli.exe"
|
install(FILES "../libcore/bin/BearVPNCli.exe"
|
||||||
DESTINATION "${INSTALL_BUNDLE_LIB_DIR}"
|
DESTINATION "${INSTALL_BUNDLE_LIB_DIR}"
|
||||||
COMPONENT Runtime)
|
COMPONENT Runtime
|
||||||
|
OPTIONAL)
|
||||||
|
|
||||||
|
|
||||||
if(PLUGIN_BUNDLED_LIBRARIES)
|
if(PLUGIN_BUNDLED_LIBRARIES)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user