mirror of
https://github.com/feather-wallet/feather.git
synced 2024-11-16 17:27:38 +00:00
update platform tag for arm builds
This commit is contained in:
parent
821bbf60e7
commit
7652fd086e
1 changed files with 17 additions and 3 deletions
|
@ -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 "";
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue