MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / updaterArchSuffix

Function updaterArchSuffix

app/src/Misc/ModuleManager.cpp:386–396  ·  view source on GitHub ↗

* @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. */

Source from the content-addressed store, hash-verified

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/**

Callers 2

probedPackageKeyFunction · 0.85
configureUpdaterMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected