{
ui->setupUi(this);
+ qDebug() << "Platform tag: " << this->getPlatformTag();
+
// Ensure the destructor is called after closeEvent()
setAttribute(Qt::WA_DeleteOnClose);
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 "";
}