update platform tag for arm builds

This commit is contained in:
tobtoht 2022-12-26 16:25:16 +01:00
parent 821bbf60e7
commit 7652fd086e

View 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
if (!qEnvironmentVariableIsEmpty("APPIMAGE")) {
return "linux-appimage";
QString tag = "";
QString arch = QSysInfo::buildCpuArchitecture();
if (arch == "arm64") {
tag += "linux-arm64";
} else if (arch == "arm") {
tag += "linux-arm";
} else {
tag += "linux";
}
return "linux";
if (!qEnvironmentVariableIsEmpty("APPIMAGE")) {
tag += "-appimage";
}
return tag;
#endif
return "";
}