* @brief Returns the updates.json architecture suffix ("x64"/"arm64") for the running CPU, * or an empty string on architectures the release feed does not carry. */
| 384 | * or an empty string on architectures the release feed does not carry. |
| 385 | */ |
| 386 | [[nodiscard]] static QString updaterArchSuffix() |
| 387 | { |
| 388 | const auto arch = QSysInfo::buildCpuArchitecture(); |
| 389 | if (arch == QStringLiteral("x86_64") || arch == QStringLiteral("i386")) |
| 390 | return QStringLiteral("x64"); |
| 391 | |
| 392 | if (arch == QStringLiteral("arm64") || arch == QStringLiteral("aarch64")) |
| 393 | return QStringLiteral("arm64"); |
| 394 | |
| 395 | return QString(); |
| 396 | } |
| 397 | #endif |
| 398 | |
| 399 | /** |
no outgoing calls
no test coverage detected