diff --git a/scripts/prepare b/scripts/prepare
index b83daa9835657258425d80d193c9bf0bdef71fa4..ba5d4fcc7229746e83557fc9181434d04c152b52 100755
--- a/scripts/prepare
+++ b/scripts/prepare
@@ -14,6 +14,6 @@ fi
 if [[ ! -d "${PROJDIR}/lib/AppImageUpdate-prebuilt" ]]; then
     mkdir "${PROJDIR}/lib/AppImageUpdate-prebuilt"
     cd "${PROJDIR}/lib/AppImageUpdate-prebuilt"
-    cmake "${PROJDIR}/lib/AppImageUpdate" -DUSE_SYSTEM_CURL=ON -DBUILD_CPR_TESTS=OFF -DCMAKE_BUILD_TYPE=RelWithDebInfo
+    cmake "${PROJDIR}/lib/AppImageUpdate" -DBUILD_QT_UI=OFF -DCMAKE_BUILD_TYPE=RelWithDebInfo
     make libappimageupdate_static
 fi