add linux.

This commit is contained in:
amass 2024-10-01 00:50:05 +08:00
parent 49499357b5
commit 1ce4afdc25
3 changed files with 6 additions and 2 deletions

View File

@ -1,6 +1,7 @@
#ifndef __IMAGEDECODER_H__ #ifndef __IMAGEDECODER_H__
#define __IMAGEDECODER_H__ #define __IMAGEDECODER_H__
#include <cstdint>
#include <optional> #include <optional>
#include <string> #include <string>
#include <vector> #include <vector>

View File

@ -7,7 +7,7 @@ import Analyser
Window { Window {
id: window id: window
width: 1120 width: 1120
height: 630 height: 650
visible: true visible: true
title: qsTr(Qt.application.name + " " + Qt.application.version) title: qsTr(Qt.application.name + " " + Qt.application.version)

View File

@ -46,8 +46,11 @@ void CdcUpdater::start(const QString &path, const QSerialPortInfo &info) {
} else { } else {
open(info); open(info);
} }
#ifdef Q_OS_WINDOWS
m_path = Amass::StringUtility::UTF8ToGBK(path.toStdString()); m_path = Amass::StringUtility::UTF8ToGBK(path.toStdString());
#else
m_path = path.toStdString();
#endif
LOG(info) << "ota file: " << m_path; LOG(info) << "ota file: " << m_path;
emit progressChanged(++m_progress); emit progressChanged(++m_progress);
} }