mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-11-16 15:58:11 +00:00
main: add ARM build tag for auto updater
This commit is contained in:
parent
f650e96363
commit
ad1b53fa63
2 changed files with 6 additions and 1 deletions
2
main.qml
2
main.qml
|
@ -2186,7 +2186,7 @@ ApplicationWindow {
|
|||
|
||||
function getBuildTag() {
|
||||
if (isMac) {
|
||||
return "mac-x64";
|
||||
return isARM ? "mac-armv8" : "mac-x64";
|
||||
}
|
||||
if (isWindows) {
|
||||
return oshelper.installed ? "install-win-x64" : "win-x64";
|
||||
|
|
|
@ -156,6 +156,7 @@ bool isLinux = false;
|
|||
bool isTails = false;
|
||||
bool isDesktop = false;
|
||||
bool isOpenGL = true;
|
||||
bool isARM = false;
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
|
@ -177,6 +178,9 @@ int main(int argc, char *argv[])
|
|||
#elif defined(Q_OS_MAC)
|
||||
bool isMac = true;
|
||||
#endif
|
||||
#if defined(__aarch64__)
|
||||
bool isARM = true;
|
||||
#endif
|
||||
|
||||
// detect low graphics mode (start-low-graphics-mode.bat)
|
||||
if(qgetenv("QMLSCENE_DEVICE") == "softwarecontext")
|
||||
|
@ -483,6 +487,7 @@ Verify update binary using 'shasum'-compatible (SHA256 algo) output signed by tw
|
|||
engine.rootContext()->setContextProperty("isAndroid", isAndroid);
|
||||
engine.rootContext()->setContextProperty("isOpenGL", isOpenGL);
|
||||
engine.rootContext()->setContextProperty("isTails", isTails);
|
||||
engine.rootContext()->setContextProperty("isARM", isARM);
|
||||
|
||||
engine.rootContext()->setContextProperty("screenAvailableWidth", screenAvailableSize.width());
|
||||
engine.rootContext()->setContextProperty("screenAvailableHeight", screenAvailableSize.height());
|
||||
|
|
Loading…
Reference in a new issue