mirror of
https://github.com/wownero/wowlet.git
synced 2026-10-17 15:21:30 +02:00
update platform tag for arm builds
This commit is contained in:
+17
-3
@@ -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 "";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user