From: tobtoht Date: Mon, 26 Dec 2022 15:25:16 +0000 (+0100) Subject: update platform tag for arm builds X-Git-Url: https://git.nutra.tk/v2?a=commitdiff_plain;h=7652fd086e85153f4c24024afa086b30916b4cc6;p=gamesguru%2Ffeather.git update platform tag for arm builds --- diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp index c9276ee1..ad6ba565 100644 --- a/src/MainWindow.cpp +++ b/src/MainWindow.cpp @@ -46,6 +46,8 @@ MainWindow::MainWindow(WindowManager *windowManager, Wallet *wallet, QWidget *pa { ui->setupUi(this); + qDebug() << "Platform tag: " << this->getPlatformTag(); + // Ensure the destructor is called after closeEvent() setAttribute(Qt::WA_DeleteOnClose); @@ -1518,10 +1520,22 @@ QString MainWindow::getPlatformTag() { return "win"; #endif #ifdef Q_OS_LINUX + QString tag = ""; + + QString arch = QSysInfo::buildCpuArchitecture(); + if (arch == "arm64") { + tag += "linux-arm64"; + } else if (arch == "arm") { + tag += "linux-arm"; + } else { + tag += "linux"; + } + if (!qEnvironmentVariableIsEmpty("APPIMAGE")) { - return "linux-appimage"; + tag += "-appimage"; } - return "linux"; + + return tag; #endif return ""; }