]> Nutra Git (v2) - gamesguru/feather.git/commitdiff
update platform tag for arm builds
authortobtoht <tob@featherwallet.org>
Mon, 26 Dec 2022 15:25:16 +0000 (16:25 +0100)
committertobtoht <tob@featherwallet.org>
Mon, 26 Dec 2022 15:25:16 +0000 (16:25 +0100)
src/MainWindow.cpp

index c9276ee185fa7cef3c8dbda3de011dd475de2887..ad6ba565551c8e627d3013ffc962da291d45ae11 100644 (file)
@@ -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 "";
 }