{
ui->setupUi(this);
- qDebug() << "Platform tag: " << this->getPlatformTag();
// MCWARNING("feather", "Platform tag: " << this->getPlatformTag().toStdString());
// Ensure the destructor is called after closeEvent()
Utils::externalLinkWarning(this, "https://docs.featherwallet.org/guides/report-an-issue");
}
-QString MainWindow::getPlatformTag() {
-#ifdef Q_OS_MACOS
- return "mac";
-#endif
-#ifdef Q_OS_WIN
-#ifdef PLATFORM_INSTALLER
- return "win-installer";
-#endif
- 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")) {
- tag += "-appimage";
- }
-
- return tag;
-#endif
- return "";
-}
-
QString MainWindow::getHardwareDevice() {
if (!m_wallet->isHwBacked())
return "";
void setStatusText(const QString &text, bool override = false, int timeout = 1000);
void showBalanceDialog();
QString statusDots();
- QString getPlatformTag();
void displayWalletErrorMsg(const QString &err);
QString getHardwareDevice();
void updateTitle();
{
std::string featherWallet = Utils::fileOpen(":/assets/gpg_keys/featherwallet.asc").toStdString();
m_maintainers.emplace_back(featherWallet);
+
+ qDebug() << "Platform tag: " << this->getPlatformTag();
}
void Updater::checkForUpdates() {
tag += "-appimage";
}
+#if !defined(HAS_TOR_BIN)
+ tag += "-a";
+#endif
+
return tag;
#endif
return "";