Skip to content

Commit 377e214

Browse files
authored
Merge pull request #954 from kiwix/qt6_on_jammy_via_aqtinstall
aqtinstall-based builds of kiwix-desktop on jammy
2 parents 68edf52 + 28be43b commit 377e214

4 files changed

Lines changed: 35 additions & 8 deletions

File tree

.github/scripts/build_definition.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,7 @@
3939
| jammy | flatpak | | | | | BP | | |
4040
| jammy | native_static | d | d | dBPSD | dBPSD | | linux-x86_64 | linux-x86_64-static |
4141
| jammy | native_mixed | BPS | BPS | | | | linux-x86_64 | |
42-
| jammy | native_dyn | d | d | dB | dB | | | linux-x86_64-dyn |
43-
| resolute | native_dyn | | | | | dBPS | | linux-x86_64-dyn |
42+
| jammy | native_dyn | d | d | dB | dB | dBPS | | linux-x86_64-dyn |
4443
# libzim CI is building alpine_dyn but not us
4544
| jammy | android_arm | dBP | dBP | | | | android-arm | android-arm |
4645
| jammy | android_arm64 | dBP | dBP | | | | android-arm64 | android-arm64 |

.github/workflows/cd.yml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,16 +132,14 @@ jobs:
132132
- x86-64_musl_mixed
133133
image_variant: ['jammy']
134134
include:
135-
- config: native_dyn
136-
image_variant: resolute
137135
- config: native_mixed
138136
image_variant: x86-64_manylinux
139137
env:
140138
HOME: /home/runner
141139
KIWIX_FILE_UPLOAD_SSH_KEY_PATH: /tmp/kiwix_file_upload_key
142140
runs-on: ubuntu-22.04
143141
container:
144-
image: "ghcr.io/kiwix/kiwix-build_ci_${{matrix.image_variant}}:2026-04-25"
142+
image: "ghcr.io/kiwix/kiwix-build_ci_${{matrix.image_variant}}:2026-07-22"
145143
options: "--device /dev/fuse --privileged"
146144
steps:
147145
- name: Checkout code
@@ -164,6 +162,19 @@ jobs:
164162
run: |
165163
echo "${{secrets.KIWIXBUILD_FILE_UPLOAD_KEY}}" > $KIWIX_FILE_UPLOAD_SSH_KEY_PATH
166164
chmod 600 $KIWIX_FILE_UPLOAD_SSH_KEY_PATH
165+
- name: Install QT
166+
if: ${{ matrix.config == 'native_dyn' }}
167+
uses: jurplel/install-qt-action@v4
168+
with:
169+
version: 6.8.3
170+
host: "linux"
171+
target: "desktop"
172+
dir: /home/runner
173+
modules: "qtwebengine qtwebchannel qtpositioning qtserialport"
174+
install-deps: false
175+
setup-python: false
176+
env:
177+
AQT_CONFIG: ${{ github.workspace }}/.github/configs/aqt.ini
167178
- name: Ensure base deps
168179
shell: bash
169180
run: |
@@ -175,6 +186,7 @@ jobs:
175186
shell: bash
176187
run: |
177188
cd $HOME
189+
PATH=/home/runner/Qt/6.8.3/gcc_64/bin:$PATH
178190
kiwix-build/.github/scripts/build_release_nightly.py
179191
env:
180192
COMPILE_CONFIG: ${{matrix.config}}

.github/workflows/ci.yml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,6 @@ jobs:
106106
- x86-64_musl_mixed
107107
image_variant: ['jammy']
108108
include:
109-
- config: native_dyn
110-
image_variant: resolute
111109
- config: native_mixed
112110
image_variant: x86-64_manylinux
113111
env:
@@ -116,7 +114,7 @@ jobs:
116114
OS_NAME: ${{matrix.image_variant}}
117115
runs-on: ubuntu-22.04
118116
container:
119-
image: "ghcr.io/kiwix/kiwix-build_ci_${{matrix.image_variant}}:2026-04-25"
117+
image: "ghcr.io/kiwix/kiwix-build_ci_${{matrix.image_variant}}:2026-07-22"
120118
options: "--device /dev/fuse --privileged"
121119
steps:
122120
- name: Checkout code
@@ -148,6 +146,19 @@ jobs:
148146
run: |
149147
echo "${{secrets.KIWIXBUILD_FILE_UPLOAD_KEY}}" > $KIWIX_FILE_UPLOAD_SSH_KEY_PATH
150148
chmod 600 $KIWIX_FILE_UPLOAD_SSH_KEY_PATH
149+
- name: Install QT
150+
if: ${{ matrix.config == 'native_dyn' }}
151+
uses: jurplel/install-qt-action@v4
152+
with:
153+
version: 6.8.3
154+
host: "linux"
155+
target: "desktop"
156+
dir: /home/runner
157+
modules: "qtwebengine qtwebchannel qtpositioning qtserialport"
158+
install-deps: false
159+
setup-python: false
160+
env:
161+
AQT_CONFIG: ${{ github.workspace }}/.github/configs/aqt.ini
151162
- name: Ensure base deps
152163
shell: bash
153164
run: |
@@ -166,6 +177,7 @@ jobs:
166177
shell: bash
167178
run: |
168179
cd $HOME
180+
PATH=/home/runner/Qt/6.8.3/gcc_64/bin:$PATH
169181
kiwix-build/.github/scripts/build_projects.py
170182
env:
171183
COMPILE_CONFIG: ${{matrix.config}}

scripts/create_kiwix-desktop_appImage.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ set -e
55
INSTALLDIR=${1:-$PWD/BUILD_native_dyn/INSTALL}
66
SOURCEDIR=${2:-$PWD/SOURCE/kiwix-desktop}
77
APPDIR=${3:-$PWD/AppDir}
8+
QTDIR=${4:-$PWD/Qt/6.8.3/gcc_64}
89

910
SYSTEMLIBDIR=lib/x86_64-linux-gnu
1011
if [ ! -e "$INSTALLDIR/lib" ] ; then
@@ -36,6 +37,9 @@ mkdir -p $APPDIR/usr/bin/ && unzip aria2-1.37.0-x86_64-linux-musl_libressl_stati
3637
# Copy the CA trustore from the hosting system
3738
mkdir -p $APPDIR/etc/ssl/certs/ && cp /etc/ssl/certs/ca-certificates.crt $APPDIR/etc/ssl/certs/
3839

40+
# Copy a Qt6 resource missed by linuxdeploy-plugin-qt
41+
cp "$QTDIR"/resources/v8_context_snapshot.bin "$APPDIR"/usr/resources/
42+
3943
# Fix the RPATH of QtWebEngineProcess [TODO] Fill a issue ?
4044
patchelf --set-rpath '$ORIGIN/../lib' $APPDIR/usr/libexec/QtWebEngineProcess
4145

0 commit comments

Comments
 (0)