build(windows): add arm64 support (#3905)
Signed-off-by: ReenigneArcher <42013603+ReenigneArcher@users.noreply.github.com> Signed-off-by: Coia Prant <coiaprant@gmail.com> Co-authored-by: Ricky8955555 <rkmiao@duck.com> Co-authored-by: Mike Fara <mjfara@gmail.com> Co-authored-by: ReenigneArcher <42013603+ReenigneArcher@users.noreply.github.com>
This commit is contained in:
parent
cdc444314f
commit
d591643706
20 changed files with 242 additions and 56 deletions
|
|
@ -4,6 +4,11 @@ install(TARGETS sunshine RUNTIME DESTINATION "." COMPONENT application)
|
|||
# Hardening: include zlib1.dll (loaded via LoadLibrary() in openssl's libcrypto.a)
|
||||
install(FILES "${ZLIB}" DESTINATION "." COMPONENT application)
|
||||
|
||||
# ARM64: include minhook-detours DLL (shared library for ARM64)
|
||||
if(NOT CMAKE_SYSTEM_PROCESSOR MATCHES "AMD64" AND DEFINED _MINHOOK_DLL)
|
||||
install(FILES "${_MINHOOK_DLL}" DESTINATION "." COMPONENT application)
|
||||
endif()
|
||||
|
||||
# ViGEmBus installer
|
||||
set(VIGEMBUS_INSTALLER "${CMAKE_BINARY_DIR}/scripts/vigembus_installer.exe")
|
||||
set(VIGEMBUS_DOWNLOAD_URL_1 "https://github.com/nefarius/ViGEmBus/releases/download")
|
||||
|
|
|
|||
|
|
@ -3,12 +3,18 @@
|
|||
|
||||
set(CPACK_NSIS_INSTALLED_ICON_NAME "${PROJECT__DIR}\\\\${PROJECT_EXE}")
|
||||
|
||||
# Enable detailed logging only on AMD64
|
||||
if(CMAKE_SYSTEM_PROCESSOR MATCHES "AMD64")
|
||||
set(NSIS_LOGSET_COMMAND "LogSet on")
|
||||
else()
|
||||
set(NSIS_LOGSET_COMMAND "")
|
||||
endif()
|
||||
|
||||
# Extra install commands
|
||||
# Runs the main setup script which handles all installation tasks
|
||||
SET(CPACK_NSIS_EXTRA_INSTALL_COMMANDS
|
||||
"${CPACK_NSIS_EXTRA_INSTALL_COMMANDS}
|
||||
; Enable detailed logging
|
||||
LogSet on
|
||||
${NSIS_LOGSET_COMMAND}
|
||||
IfSilent +3 0
|
||||
nsExec::ExecToLog \
|
||||
'powershell -ExecutionPolicy Bypass \
|
||||
|
|
@ -24,8 +30,7 @@ SET(CPACK_NSIS_EXTRA_INSTALL_COMMANDS
|
|||
# Runs the main setup script which handles all uninstallation tasks
|
||||
set(CPACK_NSIS_EXTRA_UNINSTALL_COMMANDS
|
||||
"${CPACK_NSIS_EXTRA_UNINSTALL_COMMANDS}
|
||||
; Enable detailed logging
|
||||
LogSet on
|
||||
${NSIS_LOGSET_COMMAND}
|
||||
nsExec::ExecToLog \
|
||||
'powershell -ExecutionPolicy Bypass \
|
||||
-File \\\"$INSTDIR\\\\scripts\\\\sunshine-setup.ps1\\\" -Action uninstall'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue