Skip to content

Commit 71e6b3c

Browse files
committed
Merge remote-tracking branch 'origin/dev'
2 parents 162cd03 + ef159ec commit 71e6b3c

67 files changed

Lines changed: 1840 additions & 625 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/build-deb-qt5-amd64.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ on:
1313
description: 'Checkout tag'
1414
required: false
1515

16+
permissions:
17+
contents: write
18+
1619
jobs:
1720
build-omodsim:
1821
name: Build OpenModSim deb package version '${{ github.event.inputs.tag || github.event.inputs.branch || github.ref_name }}' with Qt5
@@ -184,6 +187,7 @@ jobs:
184187
- name: Create Debian rules file
185188
run: |
186189
sed -e "s|@QT_LIB_PATH@|${{ env.QT_INSTALL_DIR }}/${{ env.QT_VERSION }}/${{ env.CMAKE_COMPILER }}/lib|g" \
190+
-e "s|@PACKAGE_NAME@|${{ env.DEB_PACKAGE_NAME }}|g" \
187191
${{ env.DEB_SRC_DIR }}/debian/rules.in > ${{ env.DEB_SRC_DIR }}/debian/rules
188192
rm ${{ env.DEB_SRC_DIR }}/debian/rules.in
189193
cat -n ${{ env.DEB_SRC_DIR }}/debian/rules
@@ -201,3 +205,16 @@ jobs:
201205
with:
202206
name: ${{ env.DEB_PACKAGE_NAME }}_${{ env.APP_VERSION }}-${{ env.DEB_REVISION }}_${{ env.DEB_ARCH }}
203207
path: ${{ env.BUILD_DEB_DIR }}/${{ env.DEB_PACKAGE_NAME }}_${{ env.APP_VERSION }}-${{ env.DEB_REVISION }}_${{ env.DEB_ARCH }}.deb
208+
209+
- name: Create or update GitHub Release and upload DEB
210+
if: success() && github.event_name == 'push' && github.ref_type == 'tag'
211+
uses: softprops/action-gh-release@v2
212+
with:
213+
draft: true
214+
tag_name: ${{ github.ref_name }}
215+
name: Open ModSim ${{ env.APP_VERSION }}
216+
files: |
217+
${{ env.BUILD_DEB_DIR }}/${{ env.DEB_PACKAGE_NAME }}_${{ env.APP_VERSION }}-${{ env.DEB_REVISION }}_${{ env.DEB_ARCH }}.deb
218+
env:
219+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
220+

.github/workflows/build-deb-qt6-amd64.yml

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ on:
1313
description: 'Checkout tag'
1414
required: false
1515

16+
permissions:
17+
contents: write
18+
1619
jobs:
1720
build-omodsim:
1821
name: Build OpenModSim deb package version '${{ github.event.inputs.tag || github.event.inputs.branch || github.ref_name }}' with Qt6
@@ -26,6 +29,7 @@ jobs:
2629
QT_TARGET: "desktop"
2730
QT_ARCH: "linux_gcc_64"
2831
QT_INSTALL_DIR: "/opt/Qt"
32+
QT_QPA_PLATFORM: "xcb"
2933
CMAKE_COMPILER: "gcc_64"
3034
CMAKE_GENERATOR: "Ninja"
3135
BUILD_TYPE: "Release"
@@ -90,8 +94,7 @@ jobs:
9094
- name: Set Python 3.12 as default
9195
run: |
9296
update-alternatives --install /usr/bin/python3 python3 /usr/local/bin/python3.12 2
93-
update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.8 1
94-
update-alternatives --auto python3
97+
update-alternatives --set python3 /usr/local/bin/python3.12
9598
9699
- name: Upgrade pip
97100
run: |
@@ -157,6 +160,7 @@ jobs:
157160
git clone https://github.com/QuasarApp/CQtDeployer.git
158161
cd CQtDeployer
159162
git checkout v1.6.2365
163+
wget -qO- https://github.com/QuasarApp/CQtDeployer/pull/846.patch | git apply
160164
git submodule update --init --recursive
161165
cmake -B build -DCMAKE_BUILD_TYPE=Release \
162166
-DCMAKE_PREFIX_PATH=${{ env.QT_INSTALL_DIR }}/${{ env.QT_VERSION }}/${{ env.CMAKE_COMPILER }} \
@@ -173,8 +177,9 @@ jobs:
173177
CQtDeployer -bin ${{ env.BUILD_DIR }}/omodsim \
174178
-targetDir ${{ env.DEB_SRC_DIR }}/opt/OpenModSim \
175179
-libDir ${{ env.QT_INSTALL_DIR }}/${{ env.QT_VERSION }}/${{ env.CMAKE_COMPILER }}/lib \
176-
-ignore libcrypto.so.3,libmysqlclient.so.21,libpq.so.5,libssl.so.3,libqsqlmimer.so,libqsqlmysql.so,libqsqlodbc.so,libqsqlpsql.so \
177-
-extraLibs icudata,icui18n,icuuc,libxcb-util
180+
-ignore libcrypto.so.3,libmysqlclient.so.21,libpq.so.5,libssl.so.3,libqsqlmimer.so,libqsqlmysql.so,libqsqlodbc.so,libqsqlpsql.so,libqsqlibase.so,libqsqloci.so \
181+
-extraLibs icudata,icui18n,icuuc,libxcb-util \
182+
-customScript 'export QT_QPA_PLATFORM=${{ env.QT_QPA_PLATFORM }}'
178183
179184
- name: Copy OpenModsim docs
180185
run: rsync -a "${{ env.BUILD_DIR }}/docs/" "${{ env.DEB_SRC_DIR }}/opt/OpenModSim/docs/"
@@ -208,6 +213,7 @@ jobs:
208213
- name: Create Debian rules file
209214
run: |
210215
sed -e "s|@QT_LIB_PATH@|${{ env.QT_INSTALL_DIR }}/${{ env.QT_VERSION }}/${{ env.CMAKE_COMPILER }}/lib|g" \
216+
-e "s|@PACKAGE_NAME@|${{ env.DEB_PACKAGE_NAME }}|g" \
211217
${{ env.DEB_SRC_DIR }}/debian/rules.in > ${{ env.DEB_SRC_DIR }}/debian/rules
212218
rm ${{ env.DEB_SRC_DIR }}/debian/rules.in
213219
cat -n ${{ env.DEB_SRC_DIR }}/debian/rules
@@ -225,3 +231,15 @@ jobs:
225231
with:
226232
name: ${{ env.DEB_PACKAGE_NAME }}_${{ env.APP_VERSION }}-${{ env.DEB_REVISION }}_${{ env.DEB_ARCH }}
227233
path: ${{ env.BUILD_DEB_DIR }}/${{ env.DEB_PACKAGE_NAME }}_${{ env.APP_VERSION }}-${{ env.DEB_REVISION }}_${{ env.DEB_ARCH }}.deb
234+
235+
- name: Create or update GitHub Release and upload DEB
236+
if: success() && github.event_name == 'push' && github.ref_type == 'tag'
237+
uses: softprops/action-gh-release@v2
238+
with:
239+
draft: true
240+
tag_name: ${{ github.ref_name }}
241+
name: Open ModSim ${{ env.APP_VERSION }}
242+
files: |
243+
${{ env.BUILD_DEB_DIR }}/${{ env.DEB_PACKAGE_NAME }}_${{ env.APP_VERSION }}-${{ env.DEB_REVISION }}_${{ env.DEB_ARCH }}.deb
244+
env:
245+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/build-installer-qt5-win32.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ on:
1313
description: 'Checkout tag'
1414
required: false
1515

16+
permissions:
17+
contents: write
18+
1619
env:
1720
QT_VERSION: 5.15.2
1821
QT_ARCH: win32_msvc2019
@@ -123,4 +126,16 @@ jobs:
123126
if: success()
124127
with:
125128
name: qt5-omodsim-${{ env.APP_VERSION }}_${{ env.ARCH }}
126-
path: qt5-omodsim-${{ env.APP_VERSION }}_${{ env.ARCH }}.exe
129+
path: qt5-omodsim-${{ env.APP_VERSION }}_${{ env.ARCH }}.exe
130+
131+
- name: Create or update GitHub Release and upload EXE
132+
if: success() && github.event_name == 'push' && github.ref_type == 'tag'
133+
uses: softprops/action-gh-release@v2
134+
with:
135+
draft: true
136+
tag_name: ${{ github.ref_name }}
137+
name: Open ModSim ${{ env.APP_VERSION }}
138+
files: |
139+
qt5-omodsim-${{ env.APP_VERSION }}_${{ env.ARCH }}.exe
140+
env:
141+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/build-installer-qt5-win64.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ on:
1313
description: 'Checkout tag'
1414
required: false
1515

16+
permissions:
17+
contents: write
18+
1619
env:
1720
QT_VERSION: 5.15.2
1821
QT_ARCH: win64_msvc2019_64
@@ -122,4 +125,16 @@ jobs:
122125
if: success()
123126
with:
124127
name: qt5-omodsim-${{ env.APP_VERSION }}_${{ env.CMAKE_ARCH }}
125-
path: qt5-omodsim-${{ env.APP_VERSION }}_${{ env.CMAKE_ARCH }}.exe
128+
path: qt5-omodsim-${{ env.APP_VERSION }}_${{ env.CMAKE_ARCH }}.exe
129+
130+
- name: Create or update GitHub Release and upload EXE
131+
if: success() && github.event_name == 'push' && github.ref_type == 'tag'
132+
uses: softprops/action-gh-release@v2
133+
with:
134+
draft: true
135+
tag_name: ${{ github.ref_name }}
136+
name: Open ModSim ${{ env.APP_VERSION }}
137+
files: |
138+
qt5-omodsim-${{ env.APP_VERSION }}_${{ env.CMAKE_ARCH }}.exe
139+
env:
140+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/build-installer-qt6-win64.yml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@ on:
1212
tag:
1313
description: 'Checkout tag'
1414
required: false
15-
15+
16+
permissions:
17+
contents: write
18+
1619
env:
1720
QT_VERSION: 6.9.3
1821
QT_ARCH: win64_msvc2022_64
@@ -118,4 +121,16 @@ jobs:
118121
if: success()
119122
with:
120123
name: qt6-omodsim-${{ env.APP_VERSION }}_${{ env.CMAKE_ARCH }}
121-
path: qt6-omodsim-${{ env.APP_VERSION }}_${{ env.CMAKE_ARCH }}.exe
124+
path: qt6-omodsim-${{ env.APP_VERSION }}_${{ env.CMAKE_ARCH }}.exe
125+
126+
- name: Create or update GitHub Release and upload EXE
127+
if: success() && github.event_name == 'push' && github.ref_type == 'tag'
128+
uses: softprops/action-gh-release@v2
129+
with:
130+
draft: true
131+
tag_name: ${{ github.ref_name }}
132+
name: Open ModSim ${{ env.APP_VERSION }}
133+
files: |
134+
qt6-omodsim-${{ env.APP_VERSION }}_${{ env.CMAKE_ARCH }}.exe
135+
env:
136+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/build-rpm-qt6-x86_64.yml

Lines changed: 24 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ on:
1313
description: 'Checkout tag'
1414
required: false
1515

16+
permissions:
17+
contents: write
18+
1619
jobs:
1720
build-omodsim:
1821
name: Build OpenModSim rpm package version '${{ github.event.inputs.tag || github.event.inputs.branch || github.ref_name }}' with Qt6
@@ -26,6 +29,7 @@ jobs:
2629
QT_TARGET: "desktop"
2730
QT_ARCH: "linux_gcc_64"
2831
QT_INSTALL_DIR: "/opt/Qt"
32+
QT_QPA_PLATFORM: "xcb"
2933
CMAKE_COMPILER: "gcc_64"
3034
CMAKE_GENERATOR: "Ninja"
3135
BUILD_TYPE: "Release"
@@ -60,7 +64,7 @@ jobs:
6064
apt-get update
6165
apt-get install -y \
6266
git build-essential ninja-build cmake patchelf rsync \
63-
rpm gpg \
67+
rpm gnupg2 \
6468
libglu1-mesa libgl1-mesa-dev libxkbcommon0 libxkbcommon-x11-0 \
6569
libxcb1 libxcb-xinerama0 libxcb-cursor0 libxcb-keysyms1 libxcb-xfixes0 \
6670
libxcb-shape0 libxcb-render-util0 libxcb-icccm4 libxcb-image0 \
@@ -90,8 +94,7 @@ jobs:
9094
- name: Set Python 3.12 as default
9195
run: |
9296
update-alternatives --install /usr/bin/python3 python3 /usr/local/bin/python3.12 2
93-
update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.8 1
94-
update-alternatives --auto python3
97+
update-alternatives --set python3 /usr/local/bin/python3.12
9598
9699
- name: Upgrade pip
97100
run: |
@@ -157,6 +160,7 @@ jobs:
157160
git clone https://github.com/QuasarApp/CQtDeployer.git
158161
cd CQtDeployer
159162
git checkout v1.6.2365
163+
wget -qO- https://github.com/QuasarApp/CQtDeployer/pull/846.patch | git apply
160164
git submodule update --init --recursive
161165
cmake -B build -DCMAKE_BUILD_TYPE=Release \
162166
-DCMAKE_PREFIX_PATH=${{ env.QT_INSTALL_DIR }}/${{ env.QT_VERSION }}/${{ env.CMAKE_COMPILER }} \
@@ -173,8 +177,9 @@ jobs:
173177
CQtDeployer -bin ${{ env.BUILD_DIR }}/omodsim \
174178
-targetDir ${{ env.BUILD_RPM_DIR }}/SOURCES/omodsim/opt/OpenModSim \
175179
-libDir ${{ env.QT_INSTALL_DIR }}/${{ env.QT_VERSION }}/${{ env.CMAKE_COMPILER }}/lib \
176-
-ignore libcrypto.so.3,libmysqlclient.so.21,libpq.so.5,libssl.so.3,libqsqlmimer.so,libqsqlmysql.so,libqsqlodbc.so,libqsqlpsql.so \
177-
-extraLibs icudata,icui18n,icuuc
180+
-ignore libcrypto.so.3,libmysqlclient.so.21,libpq.so.5,libssl.so.3,libqsqlmimer.so,libqsqlmysql.so,libqsqlodbc.so,libqsqlpsql.so,libqsqlibase.so,libqsqloci.so \
181+
-extraLibs icudata,icui18n,icuuc \
182+
-customScript 'export QT_QPA_PLATFORM=${{ env.QT_QPA_PLATFORM }}'
178183
179184
- name: Copy OpenModsim docs
180185
run: rsync -a "${{ env.BUILD_DIR }}/docs/" "${{ env.BUILD_RPM_DIR }}/SOURCES/omodsim/opt/OpenModSim/docs/"
@@ -232,3 +237,17 @@ jobs:
232237
with:
233238
name: ${{ env.RPM_PACKAGE_NAME }}.rpm.pubkey
234239
path: ${{ env.RPM_PACKAGE_NAME }}.rpm.pubkey
240+
241+
- name: Create or update GitHub Release and upload RPM
242+
if: success() && github.event_name == 'push' && github.ref_type == 'tag'
243+
uses: softprops/action-gh-release@v2
244+
with:
245+
draft: true
246+
tag_name: ${{ github.ref_name }}
247+
name: Open ModSim ${{ env.APP_VERSION }}
248+
files: |
249+
${{ env.BUILD_RPM_DIR }}/RPMS/${{ env.RPM_ARCH }}/${{ env.RPM_PACKAGE_NAME }}-${{ env.APP_VERSION }}-${{ env.RPM_REVISION }}.${{ env.RPM_ARCH }}.rpm
250+
${{ env.RPM_PACKAGE_NAME }}.rpm.pubkey
251+
env:
252+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
253+

.pkg/deb/control.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ Standards-Version: 4.6.2
77

88
Package: @PACKAGE_NAME@
99
Architecture: amd64
10-
Depends: libatk1.0-0, libatomic1, libc6, libcairo-gobject2, libcairo2, libcups2, libdbus-1-3, libdrm2, libegl1, libfontconfig1, libfreetype6, libgcc1, libgdk-pixbuf-2.0-0, libgl1, libglib2.0-0, libglx0, libgssapi-krb5-2, libgtk-3-0, libopengl0, libpango-1.0-0, libpangocairo-1.0-0, libstdc++6, libwayland-client0, libwayland-cursor0, libwayland-egl1, libx11-6, libx11-xcb1, libxcb-cursor0, libxcb-glx0, libxcb-icccm4, libxcb-image0, libxcb-keysyms1, libxcb-randr0, libxcb-render-util0, libxcb-render0, libxcb-shape0, libxcb-shm0, libxcb-sync1, libxcb-xfixes0, libxcb-xkb1, libxcb1, libxkbcommon-x11-0, libxkbcommon0, libzstd1, zlib1g
10+
Depends: ${shlibs:Depends}, ${misc:Depends}
1111
Description: An Open Source Modbus Slave (Server) Utility.

.pkg/deb/rules.in

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,17 @@ override_dh_builddeb:
77
dh_builddeb -- -Zgzip
88

99
override_dh_dwz:
10-
10+
:
1111

1212
override_dh_shlibdeps:
13-
dh_shlibdeps --dpkg-shlibdeps-params=--ignore-missing-info -l@QT_LIB_PATH@
13+
dh_shlibdeps \
14+
--dpkg-shlibdeps-params="--ignore-missing-info" \
15+
-l@QT_LIB_PATH@
1416

15-
override_dh_strip:
16-
dh_strip --no-automatic-dbgsym
17+
sed -i 's/, libgcc-s1 (>= [^)]*)//g' debian/@PACKAGE_NAME@.substvars
18+
sed -i 's/libgcc-s1 (>= [^)]*), //g' debian/@PACKAGE_NAME@.substvars
1719

18-
override_dh_gencontrol:
19-
dh_gencontrol -- -Vshlibs:Depends=
20+
cat debian/@PACKAGE_NAME@.substvars || true
21+
22+
override_dh_strip:
23+
dh_strip --no-automatic-dbgsym

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -153,18 +153,18 @@ Below are the methods for installing the OpenModSim for different OS
153153
## Microsoft Windows
154154
Run the installer:
155155

156-
- For 32-bit Windows: `qt5-omodsim_1.11.0_x86.exe`
157-
- For 64-bit Windows: `qt5-omodsim_1.11.0_x64.exe` or `qt6-omodsim_1.11.0_x64.exe`
156+
- For 32-bit Windows: `qt5-omodsim_1.11.1_x86.exe`
157+
- For 64-bit Windows: `qt5-omodsim_1.11.1_x64.exe` or `qt6-omodsim_1.11.1_x64.exe`
158158

159159
## Debian/Ubintu/Mint/Astra Linux
160160
### Install
161161
Install the DEB package from the command line:
162162
```bash
163-
sudo apt install ./qt6-omodsim_1.11.0-1_amd64.deb
163+
sudo apt install ./qt6-omodsim_1.11.1-1_amd64.deb
164164
```
165165
or if you want to use Qt5 libraries:
166166
```bash
167-
sudo apt install ./qt5-omodsim_1.11.0-1_amd64.deb
167+
sudo apt install ./qt5-omodsim_1.11.1-1_amd64.deb
168168
```
169169

170170
### Remove
@@ -181,7 +181,7 @@ sudo apt remove qt5-omodsim
181181
### Install
182182
Install the RPM package from the command line:
183183
```bash
184-
sudo dnf install ./qt6-omodsim-1.11.0-1.x86_64.rpm
184+
sudo dnf install ./qt6-omodsim-1.11.1-1.x86_64.rpm
185185
```
186186

187187
### Remove
@@ -194,7 +194,7 @@ sudo dnf remove qt6-omodsim
194194
### Install
195195
Install the RPM package from the command line as root user:
196196
```bash
197-
apt-get install ./qt6-omodsim-1.11.0-1.x86_64.rpm
197+
apt-get install ./qt6-omodsim-1.11.1-1.x86_64.rpm
198198
```
199199

200200
### Remove
@@ -211,7 +211,7 @@ sudo rpm --import qt6-omodsim.rpm.pubkey
211211
```
212212
Install the RPM package using Zypper:
213213
```bash
214-
sudo zypper install ./qt6-omodsim-1.11.0-1.x86_64.rpm
214+
sudo zypper install ./qt6-omodsim-1.11.1-1.x86_64.rpm
215215
```
216216

217217
### Remove

0 commit comments

Comments
 (0)