mirror of
https://github.com/Serial-Studio/Serial-Studio.git
synced 2025-01-31 17:42:55 +08:00
Reduce MW min size & use Qt 6.2.2
This commit is contained in:
parent
1bdc6a7b56
commit
537c01cb72
5
.github/workflows/codeql-analysis.yml
vendored
5
.github/workflows/codeql-analysis.yml
vendored
@ -38,13 +38,14 @@ jobs:
|
|||||||
uses: actions/cache@v1
|
uses: actions/cache@v1
|
||||||
with:
|
with:
|
||||||
path: ../Qt
|
path: ../Qt
|
||||||
key: ${{runner.os}}-qtcachedir-5.15.2
|
key: ${{runner.os}}-qtcachedir-6.2.2
|
||||||
|
|
||||||
- name: '⚙️ Install Qt'
|
- name: '⚙️ Install Qt'
|
||||||
uses: jurplel/install-qt-action@v2
|
uses: jurplel/install-qt-action@v2
|
||||||
with:
|
with:
|
||||||
version: 5.15.2
|
version: 6.2.2
|
||||||
aqtversion: '==2.0.0'
|
aqtversion: '==2.0.0'
|
||||||
|
modules: qtserialport qt5compat
|
||||||
cached: ${{steps.cache-qt.outputs.cache-hit}}
|
cached: ${{steps.cache-qt.outputs.cache-hit}}
|
||||||
|
|
||||||
- name: '⚙️ Install dependencies'
|
- name: '⚙️ Install dependencies'
|
||||||
|
28
.github/workflows/deploy.yml
vendored
28
.github/workflows/deploy.yml
vendored
@ -26,8 +26,8 @@ env:
|
|||||||
QML_DIR_WIN: "assets\\qml"
|
QML_DIR_WIN: "assets\\qml"
|
||||||
PUBLISHER: "Alex Spataru"
|
PUBLISHER: "Alex Spataru"
|
||||||
REPO_DIR: "/home/runner/work/Serial-Studio/Serial-Studio"
|
REPO_DIR: "/home/runner/work/Serial-Studio/Serial-Studio"
|
||||||
QT_VERSION: 5.15.2
|
QT_VERSION: 6.2.2
|
||||||
QMAKE: qmake
|
QMAKE: qmake6
|
||||||
CORES: 12
|
CORES: 12
|
||||||
|
|
||||||
#--------------------------------------------------------------------------------
|
#--------------------------------------------------------------------------------
|
||||||
@ -56,7 +56,7 @@ jobs:
|
|||||||
uses: jurplel/install-qt-action@v2
|
uses: jurplel/install-qt-action@v2
|
||||||
with:
|
with:
|
||||||
version: ${{env.QT_VERSION}}
|
version: ${{env.QT_VERSION}}
|
||||||
#modules: qtserialport qt5compat
|
modules: qtserialport qt5compat
|
||||||
aqtversion: '==2.0.0'
|
aqtversion: '==2.0.0'
|
||||||
cached: ${{steps.cache-qt.outputs.cache-hit}}
|
cached: ${{steps.cache-qt.outputs.cache-hit}}
|
||||||
|
|
||||||
@ -72,17 +72,21 @@ jobs:
|
|||||||
${{env.QMAKE}} ${{env.QMAKE_PROJECT}} CONFIG+=release PREFIX=/usr
|
${{env.QMAKE}} ${{env.QMAKE_PROJECT}} CONFIG+=release PREFIX=/usr
|
||||||
make -j${{env.CORES}}
|
make -j${{env.CORES}}
|
||||||
|
|
||||||
- name: '⚙️ Install linuxdeployqt'
|
- name: '⚙️ Install linuxdeploy'
|
||||||
run: |
|
run: |
|
||||||
wget -c -nv "https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage" -O linuxdeployqt
|
wget https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage
|
||||||
chmod a+x linuxdeployqt
|
wget https://github.com/linuxdeploy/linuxdeploy-plugin-qt/releases/download/continuous/linuxdeploy-plugin-qt-x86_64.AppImage
|
||||||
|
chmod +x linuxdeploy-x86_64.AppImage
|
||||||
|
chmod +x linuxdeploy-plugin-qt-x86_64.AppImage
|
||||||
|
|
||||||
- name: '📦 Create AppImage'
|
- name: '📦 Create AppImage'
|
||||||
run: |
|
run: |
|
||||||
make INSTALL_ROOT=appdir install
|
export QML_SOURCES_PATHS="${{env.QML_DIR_NIX}}"
|
||||||
./linuxdeployqt appdir/usr/share/applications/*.desktop -appimage -bundle-non-qt-libs -extra-plugins=imageformats/libqsvg.so -qmldir="${{env.QML_DIR_NIX}}"
|
export PATH=/home/runner/work/Serial-Studio/Qt/6.2.0/gcc_64/libexec:$PATH
|
||||||
# Rename AppImage to match "%AppName%-%Version%-Linux.AppImage" format
|
./linuxdeploy-x86_64.AppImage --appdir AppDir -e ${{env.UNIXNAME}} -i deploy/linux/${{env.UNIXNAME}}.png -d deploy/linux/${{env.UNIXNAME}}.desktop --plugin qt --output appimage
|
||||||
mv Serial_Studio-${{env.VERSION}}-x86_64.AppImage ${{env.EXECUTABLE}}-${{env.VERSION}}-Linux.AppImage
|
rm linuxdeploy-x86_64.AppImage
|
||||||
|
rm linuxdeploy-plugin-qt-x86_64.AppImage
|
||||||
|
mv *.AppImage ${{env.EXECUTABLE}}-${{env.VERSION}}-Linux.AppImage
|
||||||
|
|
||||||
- name: '📤 Upload artifact: AppImage'
|
- name: '📤 Upload artifact: AppImage'
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
@ -112,7 +116,7 @@ jobs:
|
|||||||
uses: jurplel/install-qt-action@v2
|
uses: jurplel/install-qt-action@v2
|
||||||
with:
|
with:
|
||||||
version: ${{env.QT_VERSION}}
|
version: ${{env.QT_VERSION}}
|
||||||
#modules: qtserialport qt5compat
|
modules: qtserialport qt5compat
|
||||||
aqtversion: '==2.0.0'
|
aqtversion: '==2.0.0'
|
||||||
cached: ${{steps.cache-qt.outputs.cache-hit}}
|
cached: ${{steps.cache-qt.outputs.cache-hit}}
|
||||||
|
|
||||||
@ -164,7 +168,7 @@ jobs:
|
|||||||
uses: jurplel/install-qt-action@v2
|
uses: jurplel/install-qt-action@v2
|
||||||
with:
|
with:
|
||||||
version: ${{env.QT_VERSION}}
|
version: ${{env.QT_VERSION}}
|
||||||
#modules: qtserialport qt5compat
|
modules: qtserialport qt5compat
|
||||||
aqtversion: '==2.0.0'
|
aqtversion: '==2.0.0'
|
||||||
cached: ${{steps.cache-qt.outputs.cache-hit}}
|
cached: ${{steps.cache-qt.outputs.cache-hit}}
|
||||||
|
|
||||||
|
@ -54,7 +54,7 @@ This project is released under the MIT license, for more information, check the
|
|||||||
|
|
||||||
### Requirements
|
### Requirements
|
||||||
|
|
||||||
The only requirement to compile the application is to have [Qt](http://www.qt.io/download-open-source/) installed in your system. The desktop application will compile with **Qt 5.15**.
|
The only requirement to compile the application is to have [Qt](http://www.qt.io/download-open-source/) installed in your system. The desktop application will compile with **Qt 6.2.2**.
|
||||||
|
|
||||||
On GNU/Linux systems, you will also need to install `libgl1-mesa-dev` in order to compile the application.
|
On GNU/Linux systems, you will also need to install `libgl1-mesa-dev` in order to compile the application.
|
||||||
|
|
||||||
@ -68,6 +68,7 @@ Full list of used Qt modules:
|
|||||||
- Qt Print Support
|
- Qt Print Support
|
||||||
- Qt Quick Widgets
|
- Qt Quick Widgets
|
||||||
- Qt Quick Controls 2
|
- Qt Quick Controls 2
|
||||||
|
- Qt5 Compatibility Module
|
||||||
|
|
||||||
### Cloning
|
### Cloning
|
||||||
|
|
||||||
|
@ -95,9 +95,9 @@ FramelessWindow.CustomWindow {
|
|||||||
title: Cpp_AppName
|
title: Cpp_AppName
|
||||||
width: minimumWidth
|
width: minimumWidth
|
||||||
height: minimumHeight
|
height: minimumHeight
|
||||||
minimumWidth: 1250 + 2 * root.shadowMargin
|
minimumWidth: 1050 + 2 * root.shadowMargin
|
||||||
backgroundColor: Cpp_ThemeManager.windowBackground
|
backgroundColor: Cpp_ThemeManager.windowBackground
|
||||||
minimumHeight: 720 + 2 * root.shadowMargin + root.titlebar.height
|
minimumHeight: 620 + 2 * root.shadowMargin + root.titlebar.height
|
||||||
|
|
||||||
//
|
//
|
||||||
// Startup code
|
// Startup code
|
||||||
|
@ -27,7 +27,7 @@ Darüber hinaus kann dieser Ansatz auf nahezu jede Art von Projekt ausgedehnt we
|
|||||||
|
|
||||||
#### Bedarf
|
#### Bedarf
|
||||||
|
|
||||||
Die einzige Voraussetzung zum Kompilieren der Anwendung ist, dass [Qt](http://www.qt.io/download-open-source/) auf Ihrem System installiert ist. Die Desktop-Anwendung wird mit **Qt 5.15** kompiliert.
|
Die einzige Voraussetzung zum Kompilieren der Anwendung ist, dass [Qt](http://www.qt.io/download-open-source/) auf Ihrem System installiert ist. Die Desktop-Anwendung wird mit **Qt 6.2.2** kompiliert.
|
||||||
|
|
||||||
Auf GNU / Linux-Systemen müssen Sie außerdem `libgl1-mesa-dev` installieren, um die Anwendung zu kompilieren.
|
Auf GNU / Linux-Systemen müssen Sie außerdem `libgl1-mesa-dev` installieren, um die Anwendung zu kompilieren.
|
||||||
|
|
||||||
@ -41,6 +41,7 @@ Vollständige Liste der verwendeten Qt-Module:
|
|||||||
- Qt Print Support
|
- Qt Print Support
|
||||||
- Qt Quick Widgets
|
- Qt Quick Widgets
|
||||||
- Qt Quick Controls 2
|
- Qt Quick Controls 2
|
||||||
|
- Qt5 Compatibility Module
|
||||||
|
|
||||||
#### Klonen
|
#### Klonen
|
||||||
|
|
||||||
|
@ -51,7 +51,7 @@ Este proyecto se publica bajo la licencia MIT, para obtener más información, c
|
|||||||
|
|
||||||
#### Requisitos
|
#### Requisitos
|
||||||
|
|
||||||
El único requisito para compilar la aplicación es tener [Qt](http://www.qt.io/download-open-source/) instalado en su sistema. La aplicación se compilará con **Qt 5.15**.
|
El único requisito para compilar la aplicación es tener [Qt](http://www.qt.io/download-open-source/) instalado en su sistema. La aplicación se compilará con **Qt 6.2.2**.
|
||||||
|
|
||||||
En sistemas GNU/Linux, también necesitará instalar `libgl1-mesa-dev` para compilar la aplicación.
|
En sistemas GNU/Linux, también necesitará instalar `libgl1-mesa-dev` para compilar la aplicación.
|
||||||
|
|
||||||
@ -65,6 +65,7 @@ Lista completa de módulos Qt usados:
|
|||||||
- Qt Print Support
|
- Qt Print Support
|
||||||
- Qt Quick Widgets
|
- Qt Quick Widgets
|
||||||
- Qt Quick Controls 2
|
- Qt Quick Controls 2
|
||||||
|
- Qt5 Compatibility Module
|
||||||
|
|
||||||
#### Clonado
|
#### Clonado
|
||||||
|
|
||||||
|
@ -27,7 +27,7 @@ Serial Studio是一个多平台,多用途的串行数据可视化的应用软
|
|||||||
|
|
||||||
#### 要求
|
#### 要求
|
||||||
|
|
||||||
编译本项目的唯一要求是在你的电脑系统中安装 QT , 本项目编译支持 **Qt 5.15***。
|
编译本项目的唯一要求是在你的电脑系统中安装 QT , 本项目编译支持 **Qt 6.2.2***。
|
||||||
|
|
||||||
在GNU/Linux系统上,还需要安装`libgl1-mesa-dev`才能编译应用程序。
|
在GNU/Linux系统上,还需要安装`libgl1-mesa-dev`才能编译应用程序。
|
||||||
|
|
||||||
@ -41,6 +41,7 @@ Serial Studio是一个多平台,多用途的串行数据可视化的应用软
|
|||||||
- Qt Print Support
|
- Qt Print Support
|
||||||
- Qt Quick Widgets
|
- Qt Quick Widgets
|
||||||
- Qt Quick Controls 2
|
- Qt Quick Controls 2
|
||||||
|
- Qt5 Compatibility Module
|
||||||
|
|
||||||
#### 克隆
|
#### 克隆
|
||||||
|
|
||||||
|
2
libs/qtcsv
vendored
2
libs/qtcsv
vendored
@ -1 +1 @@
|
|||||||
Subproject commit 5c904568cbede6efe34991c4e652e36f0c8a9c2b
|
Subproject commit bfd4a908dc4cc3f92dda031bbd3572e653019483
|
@ -7,7 +7,7 @@ pkgdesc="Serial Studio: Multi-purpose serial data visualization & processing pro
|
|||||||
arch=('any')
|
arch=('any')
|
||||||
url="https://github.com/Serial-Studio/Serial-Studio"
|
url="https://github.com/Serial-Studio/Serial-Studio"
|
||||||
license=('MIT')
|
license=('MIT')
|
||||||
depends=("${MINGW_PACKAGE_PREFIX}-qt5")
|
depends=("${MINGW_PACKAGE_PREFIX}-qt6")
|
||||||
makedepends=(
|
makedepends=(
|
||||||
"${MINGW_PACKAGE_PREFIX}-gcc"
|
"${MINGW_PACKAGE_PREFIX}-gcc"
|
||||||
"${MINGW_PACKAGE_PREFIX}-cmake"
|
"${MINGW_PACKAGE_PREFIX}-cmake"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user