GHA CI: Add support for Windows arm64 (#7758)

This commit is contained in:
namoen0301
2025-12-31 14:25:27 +08:00
committed by GitHub
parent be80b149b1
commit 398fe70b02
7 changed files with 24 additions and 19 deletions

View File

@@ -1,9 +1,14 @@
include(UtilityFunctions.cmake)
if(CMAKE_SIZEOF_VOID_P EQUAL 8)
if(CMAKE_SYSTEM_PROCESSOR MATCHES "^(aarch64|arm64|ARM64)$")
set(ARCH arm64)
set(TR_OPENSSL_ARCH "-arm64")
elseif(CMAKE_SIZEOF_VOID_P EQUAL 8)
set(ARCH x64)
set(TR_OPENSSL_ARCH "-x64")
else()
set(ARCH x86)
set(TR_OPENSSL_ARCH "")
endif()
set(VERSION "${TR_USER_AGENT_PREFIX}")
@@ -43,11 +48,6 @@ if(NOT TR_QT_DIR)
set(TR_QT_DIR "$<TARGET_FILE_DIR:Qt${Qt_VERSION_MAJOR}::Core>/..")
endif()
set(TR_OPENSSL_ARCH)
if(ARCH STREQUAL "x64")
set(TR_OPENSSL_ARCH "-x64")
endif()
if(OPENSSL_VERSION MATCHES "^3[.]")
set(TR_OPENSSL_CRYPTO_NAME "libcrypto-3${TR_OPENSSL_ARCH}.dll")
set(TR_OPENSSL_SSL_NAME "libssl-3${TR_OPENSSL_ARCH}.dll")

View File

@@ -3,8 +3,8 @@
<?include TransmissionConfig.wxi ?>
<?if $(sys.BUILDARCH) = x64 ?>
<?define ProductName = "Transmission $(var.TrVersionFull) (x64)" ?>
<?if $(sys.BUILDARCH) != x86 ?>
<?define ProductName = "Transmission $(var.TrVersionFull) ($(sys.BUILDARCH))" ?>
<?define PlatformProgramFilesFolder = "ProgramFiles64Folder" ?>
<?define PlatformSystemFolder = "System64Folder" ?>
<?else ?>