diff --git a/admin/linux/build-appimage.sh b/admin/linux/build-appimage.sh
index 558b2009bcfc9..aa592c30b3c06 100755
--- a/admin/linux/build-appimage.sh
+++ b/admin/linux/build-appimage.sh
@@ -24,7 +24,8 @@ mkdir build-client
 cd build-client
 cmake \
     -G Ninja \
-    -DQT_MAJOR_VERSION=6 \
+    -DCMAKE_PREFIX_PATH=/opt/qt6.6.3 \
+    -DOPENSSL_ROOT_DIR=/usr/local/lib64 \
     -DCMAKE_INSTALL_PREFIX=/usr \
     -DBUILD_TESTING=OFF \
     -DBUILD_UPDATER=$BUILD_UPDATER \