mirror of
https://github.com/iDescriptor/iDescriptor.git
synced 2026-06-21 19:35:49 +08:00
fix windows build
This commit is contained in:
@@ -182,14 +182,16 @@ jobs:
|
|||||||
|
|
||||||
- name: Configure CMake
|
- name: Configure CMake
|
||||||
run: |
|
run: |
|
||||||
cmake -B build -S . -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH="$Qt6_DIR"
|
cmake -B build -S . -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH="$Qt6_DIR" -DNO_DEPLOY=""
|
||||||
|
|
||||||
- name: Build with CMake
|
- name: Build with CMake
|
||||||
run: cmake --build build --config Release
|
run: cmake --build build --config Release
|
||||||
|
|
||||||
- name: Install & CPack
|
- name: Install & CPack
|
||||||
working-directory: build
|
working-directory: build
|
||||||
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
|
export PATH="$PATH:/c/Users/runneradmin/.dotnet/tools"
|
||||||
cmake --install .
|
cmake --install .
|
||||||
cpack .
|
cpack .
|
||||||
|
|
||||||
|
|||||||
+5
-10
@@ -190,6 +190,7 @@ add_subdirectory(lib/ipatool-go)
|
|||||||
add_subdirectory(lib/zupdater)
|
add_subdirectory(lib/zupdater)
|
||||||
|
|
||||||
if (WIN32)
|
if (WIN32)
|
||||||
|
set(NO_DEPLOY_WIN_IFUSE ON)
|
||||||
add_subdirectory(lib/win-ifuse)
|
add_subdirectory(lib/win-ifuse)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
@@ -320,6 +321,8 @@ if(WIN32 AND NOT DEFINED NO_DEPLOY)
|
|||||||
-DMSYS2_BIN_PATH=C:/msys64/mingw64/bin
|
-DMSYS2_BIN_PATH=C:/msys64/mingw64/bin
|
||||||
-DOUTPUT_DIR=$<TARGET_FILE_DIR:iDescriptor>
|
-DOUTPUT_DIR=$<TARGET_FILE_DIR:iDescriptor>
|
||||||
-DQML_SOURCE_DIR=${CMAKE_CURRENT_SOURCE_DIR}/qml
|
-DQML_SOURCE_DIR=${CMAKE_CURRENT_SOURCE_DIR}/qml
|
||||||
|
-DPROJECT_SOURCE_DIR=${CMAKE_SOURCE_DIR}
|
||||||
|
-DWIN_IFUSE=$<TARGET_FILE:win-ifuse>
|
||||||
-P ${CMAKE_CURRENT_LIST_DIR}/cmake/win-deploy.cmake
|
-P ${CMAKE_CURRENT_LIST_DIR}/cmake/win-deploy.cmake
|
||||||
COMMENT "Deploying Windows application with all dependencies"
|
COMMENT "Deploying Windows application with all dependencies"
|
||||||
VERBATIM
|
VERBATIM
|
||||||
@@ -351,6 +354,8 @@ if(WIN32)
|
|||||||
-DMSYS2_BIN_PATH=\"C:/msys64/mingw64/bin\"
|
-DMSYS2_BIN_PATH=\"C:/msys64/mingw64/bin\"
|
||||||
-DOUTPUT_DIR=\"\${CMAKE_INSTALL_PREFIX}\"
|
-DOUTPUT_DIR=\"\${CMAKE_INSTALL_PREFIX}\"
|
||||||
-DQML_SOURCE_DIR=\"${CMAKE_CURRENT_SOURCE_DIR}/qml\"
|
-DQML_SOURCE_DIR=\"${CMAKE_CURRENT_SOURCE_DIR}/qml\"
|
||||||
|
-DPROJECT_SOURCE_DIR=\"${CMAKE_SOURCE_DIR}\"
|
||||||
|
-DWIN_IFUSE=$<TARGET_FILE:win-ifuse>
|
||||||
-P \"${CMAKE_CURRENT_LIST_DIR}/cmake/win-deploy.cmake\"
|
-P \"${CMAKE_CURRENT_LIST_DIR}/cmake/win-deploy.cmake\"
|
||||||
)
|
)
|
||||||
")
|
")
|
||||||
@@ -394,13 +399,3 @@ endif()
|
|||||||
|
|
||||||
include(CPack)
|
include(CPack)
|
||||||
|
|
||||||
|
|
||||||
# FIXME: move to win-deploy.cmake
|
|
||||||
if(WIN32)
|
|
||||||
add_custom_command(TARGET iDescriptor POST_BUILD
|
|
||||||
COMMAND ${CMAKE_COMMAND} -E copy
|
|
||||||
$<TARGET_FILE:win-ifuse>
|
|
||||||
$<TARGET_FILE_DIR:iDescriptor>
|
|
||||||
COMMENT "Copying win-ifuse executable to output directory"
|
|
||||||
)
|
|
||||||
endif()
|
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ string(REPLACE "\"" "" MSYS2_BIN_PATH "${MSYS2_BIN_PATH}")
|
|||||||
if(QML_SOURCE_DIR)
|
if(QML_SOURCE_DIR)
|
||||||
string(REPLACE "\"" "" QML_SOURCE_DIR "${QML_SOURCE_DIR}")
|
string(REPLACE "\"" "" QML_SOURCE_DIR "${QML_SOURCE_DIR}")
|
||||||
endif()
|
endif()
|
||||||
|
string(REPLACE "\"" "" PROJECT_SOURCE_DIR "${PROJECT_SOURCE_DIR}")
|
||||||
|
|
||||||
message("=== Starting Windows deployment for: ${EXECUTABLE_PATH} ===")
|
message("=== Starting Windows deployment for: ${EXECUTABLE_PATH} ===")
|
||||||
message("Debug info:")
|
message("Debug info:")
|
||||||
@@ -233,9 +234,11 @@ message("Copying executables")
|
|||||||
file(COPY C:/msys64/mingw64/bin/iproxy.exe DESTINATION ${OUTPUT_DIR})
|
file(COPY C:/msys64/mingw64/bin/iproxy.exe DESTINATION ${OUTPUT_DIR})
|
||||||
|
|
||||||
message("Copying required scripts")
|
message("Copying required scripts")
|
||||||
file(COPY "${CMAKE_SOURCE_DIR}/install-apple-drivers.ps1" DESTINATION ${OUTPUT_DIR})
|
file(COPY "${PROJECT_SOURCE_DIR}/install-apple-drivers.ps1" DESTINATION ${OUTPUT_DIR})
|
||||||
file(COPY "${CMAKE_SOURCE_DIR}/install-win-fsp.silent.bat" DESTINATION ${OUTPUT_DIR})
|
file(COPY "${PROJECT_SOURCE_DIR}/install-win-fsp.silent.bat" DESTINATION ${OUTPUT_DIR})
|
||||||
|
|
||||||
|
message("Copying win-ifuse executable")
|
||||||
|
file(COPY "${WIN_IFUSE}" DESTINATION ${OUTPUT_DIR})
|
||||||
|
|
||||||
message("Copying winfsp-x64.dll")
|
message("Copying winfsp-x64.dll")
|
||||||
file(COPY "C:/Program Files (x86)/WinFsp/bin/winfsp-x64.dll" DESTINATION ${OUTPUT_DIR})
|
file(COPY "C:/Program Files (x86)/WinFsp/bin/winfsp-x64.dll" DESTINATION ${OUTPUT_DIR})
|
||||||
|
|||||||
+1
-1
Submodule lib/airplay updated: 200284b844...0252d7d505
+1
-1
Submodule lib/ipatool-go updated: 6aede7e92b...5affabd2b4
+1
-1
Submodule lib/win-ifuse updated: 0fb1e94efe...190558b49b
Reference in New Issue
Block a user