diff --git a/action/src/main.ts b/action/src/main.ts index 227e834d..abf64a7c 100644 --- a/action/src/main.ts +++ b/action/src/main.ts @@ -308,9 +308,16 @@ const run = async (): Promise => { "libxkbcommon-dev", "libxkbcommon-x11-0", "libxcb-xkb-dev", - ].join(" "); + ]; + + // Qt 6.5.0 adds this requirement: + // https://code.qt.io/cgit/qt/qtreleasenotes.git/about/qt/6.5.0/release-note.md + if (compareVersions(inputs.version, ">=", "6.5.0")) { + dependencies.push("libxcb-cursor0"); + } + const updateCommand = "apt-get update"; - const installCommand = `apt-get install ${dependencies} -y`; + const installCommand = `apt-get install ${dependencies.join(" ")} -y`; if (inputs.installDeps === "nosudo") { await exec(updateCommand); await exec(installCommand);