mirror of
https://github.com/ONLYOFFICE/desktop-apps.git
synced 2026-02-10 18:05:16 +08:00
Merge pull request 'Updmanager: adaptation for arm64' (#514) from fix/arm64-update into release/v9.2.0
Reviewed-on: https://git.onlyoffice.com/ONLYOFFICE/desktop-apps/pulls/514
This commit is contained in:
@ -95,9 +95,11 @@ using std::vector;
|
||||
auto currentArch()->tstring
|
||||
{
|
||||
#ifdef _WIN32
|
||||
# ifdef _WIN64
|
||||
# if defined(_M_ARM64)
|
||||
return L"_arm64";
|
||||
# elif defined(_M_X64)
|
||||
return L"_x64";
|
||||
# else
|
||||
# elif defined(_M_IX86)
|
||||
return L"_x86";
|
||||
# endif
|
||||
#else
|
||||
@ -513,9 +515,11 @@ void CSvcManager::onCompleteSlot(const int error, const tstring &filePath)
|
||||
tstring curr_svc_version = _T(VER_FILEVERSION_STR);
|
||||
JsonObject package = root.value(_T("package")).toObject();
|
||||
#ifdef _WIN32
|
||||
# ifdef _WIN64
|
||||
# if defined(_M_ARM64)
|
||||
JsonObject win = package.value(_T("win_arm64")).toObject();
|
||||
# elif defined(_M_X64)
|
||||
JsonObject win = package.value(_T("win_64")).toObject();
|
||||
# else
|
||||
# elif defined(_M_IX86)
|
||||
JsonObject win = package.value(_T("win_32")).toObject();
|
||||
# endif
|
||||
#else
|
||||
|
||||
@ -163,9 +163,11 @@ void CUpdateManager::DialogSchedule::addToSchedule(const QString &method, const
|
||||
auto currentArch()->QString
|
||||
{
|
||||
#ifdef _WIN32
|
||||
# ifdef _WIN64
|
||||
# if defined(_M_ARM64)
|
||||
return "_arm64";
|
||||
# elif defined(_M_X64)
|
||||
return "_x64";
|
||||
# else
|
||||
# elif defined(_M_IX86)
|
||||
return "_x86";
|
||||
# endif
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user