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
|
||||
with:
|
||||
path: ../Qt
|
||||
key: ${{runner.os}}-qtcachedir-5.15.2
|
||||
key: ${{runner.os}}-qtcachedir-6.2.2
|
||||
|
||||
- name: '⚙️ Install Qt'
|
||||
uses: jurplel/install-qt-action@v2
|
||||
with:
|
||||
version: 5.15.2
|
||||
version: 6.2.2
|
||||
aqtversion: '==2.0.0'
|
||||
modules: qtserialport qt5compat
|
||||
cached: ${{steps.cache-qt.outputs.cache-hit}}
|
||||
|
||||
- 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"
|
||||
PUBLISHER: "Alex Spataru"
|
||||
REPO_DIR: "/home/runner/work/Serial-Studio/Serial-Studio"
|
||||
QT_VERSION: 5.15.2
|
||||
QMAKE: qmake
|
||||
QT_VERSION: 6.2.2
|
||||
QMAKE: qmake6
|
||||
CORES: 12
|
||||
|
||||
#--------------------------------------------------------------------------------
|
||||
@ -56,7 +56,7 @@ jobs:
|
||||
uses: jurplel/install-qt-action@v2
|
||||
with:
|
||||
version: ${{env.QT_VERSION}}
|
||||
#modules: qtserialport qt5compat
|
||||
modules: qtserialport qt5compat
|
||||
aqtversion: '==2.0.0'
|
||||
cached: ${{steps.cache-qt.outputs.cache-hit}}
|
||||
|
||||
@ -72,17 +72,21 @@ jobs:
|
||||
${{env.QMAKE}} ${{env.QMAKE_PROJECT}} CONFIG+=release PREFIX=/usr
|
||||
make -j${{env.CORES}}
|
||||
|
||||
- name: '⚙️ Install linuxdeployqt'
|
||||
- name: '⚙️ Install linuxdeploy'
|
||||
run: |
|
||||
wget -c -nv "https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage" -O linuxdeployqt
|
||||
chmod a+x linuxdeployqt
|
||||
wget https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage
|
||||
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'
|
||||
run: |
|
||||
make INSTALL_ROOT=appdir install
|
||||
./linuxdeployqt appdir/usr/share/applications/*.desktop -appimage -bundle-non-qt-libs -extra-plugins=imageformats/libqsvg.so -qmldir="${{env.QML_DIR_NIX}}"
|
||||
# Rename AppImage to match "%AppName%-%Version%-Linux.AppImage" format
|
||||
mv Serial_Studio-${{env.VERSION}}-x86_64.AppImage ${{env.EXECUTABLE}}-${{env.VERSION}}-Linux.AppImage
|
||||
export QML_SOURCES_PATHS="${{env.QML_DIR_NIX}}"
|
||||
export PATH=/home/runner/work/Serial-Studio/Qt/6.2.0/gcc_64/libexec:$PATH
|
||||
./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
|
||||
rm linuxdeploy-x86_64.AppImage
|
||||
rm linuxdeploy-plugin-qt-x86_64.AppImage
|
||||
mv *.AppImage ${{env.EXECUTABLE}}-${{env.VERSION}}-Linux.AppImage
|
||||
|
||||
- name: '📤 Upload artifact: AppImage'
|
||||
uses: actions/upload-artifact@v2
|
||||
@ -112,7 +116,7 @@ jobs:
|
||||
uses: jurplel/install-qt-action@v2
|
||||
with:
|
||||
version: ${{env.QT_VERSION}}
|
||||
#modules: qtserialport qt5compat
|
||||
modules: qtserialport qt5compat
|
||||
aqtversion: '==2.0.0'
|
||||
cached: ${{steps.cache-qt.outputs.cache-hit}}
|
||||
|
||||
@ -164,7 +168,7 @@ jobs:
|
||||
uses: jurplel/install-qt-action@v2
|
||||
with:
|
||||
version: ${{env.QT_VERSION}}
|
||||
#modules: qtserialport qt5compat
|
||||
modules: qtserialport qt5compat
|
||||
aqtversion: '==2.0.0'
|
||||
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
|
||||
|
||||
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.
|
||||
|
||||
@ -68,6 +68,7 @@ Full list of used Qt modules:
|
||||
- Qt Print Support
|
||||
- Qt Quick Widgets
|
||||
- Qt Quick Controls 2
|
||||
- Qt5 Compatibility Module
|
||||
|
||||
### Cloning
|
||||
|
||||
|
@ -95,9 +95,9 @@ FramelessWindow.CustomWindow {
|
||||
title: Cpp_AppName
|
||||
width: minimumWidth
|
||||
height: minimumHeight
|
||||
minimumWidth: 1250 + 2 * root.shadowMargin
|
||||
minimumWidth: 1050 + 2 * root.shadowMargin
|
||||
backgroundColor: Cpp_ThemeManager.windowBackground
|
||||
minimumHeight: 720 + 2 * root.shadowMargin + root.titlebar.height
|
||||
minimumHeight: 620 + 2 * root.shadowMargin + root.titlebar.height
|
||||
|
||||
//
|
||||
// Startup code
|
||||
|
@ -27,7 +27,7 @@ Darüber hinaus kann dieser Ansatz auf nahezu jede Art von Projekt ausgedehnt we
|
||||
|
||||
#### 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.
|
||||
|
||||
@ -41,6 +41,7 @@ Vollständige Liste der verwendeten Qt-Module:
|
||||
- Qt Print Support
|
||||
- Qt Quick Widgets
|
||||
- Qt Quick Controls 2
|
||||
- Qt5 Compatibility Module
|
||||
|
||||
#### Klonen
|
||||
|
||||
|
@ -51,7 +51,7 @@ Este proyecto se publica bajo la licencia MIT, para obtener más información, c
|
||||
|
||||
#### 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.
|
||||
|
||||
@ -65,6 +65,7 @@ Lista completa de módulos Qt usados:
|
||||
- Qt Print Support
|
||||
- Qt Quick Widgets
|
||||
- Qt Quick Controls 2
|
||||
- Qt5 Compatibility Module
|
||||
|
||||
#### Clonado
|
||||
|
||||
|
@ -27,7 +27,7 @@ Serial Studio是一个多平台,多用途的串行数据可视化的应用软
|
||||
|
||||
#### 要求
|
||||
|
||||
编译本项目的唯一要求是在你的电脑系统中安装 QT , 本项目编译支持 **Qt 5.15***。
|
||||
编译本项目的唯一要求是在你的电脑系统中安装 QT , 本项目编译支持 **Qt 6.2.2***。
|
||||
|
||||
在GNU/Linux系统上,还需要安装`libgl1-mesa-dev`才能编译应用程序。
|
||||
|
||||
@ -41,6 +41,7 @@ Serial Studio是一个多平台,多用途的串行数据可视化的应用软
|
||||
- Qt Print Support
|
||||
- Qt Quick Widgets
|
||||
- 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')
|
||||
url="https://github.com/Serial-Studio/Serial-Studio"
|
||||
license=('MIT')
|
||||
depends=("${MINGW_PACKAGE_PREFIX}-qt5")
|
||||
depends=("${MINGW_PACKAGE_PREFIX}-qt6")
|
||||
makedepends=(
|
||||
"${MINGW_PACKAGE_PREFIX}-gcc"
|
||||
"${MINGW_PACKAGE_PREFIX}-cmake"
|
||||
|
Loading…
x
Reference in New Issue
Block a user