From 16c52b8e203d88ed70ef24e186b88dc611373cb8 Mon Sep 17 00:00:00 2001 From: Igor Khanin Date: Sat, 27 Jan 2024 00:35:46 +0200 Subject: [PATCH 1/2] Add libxcb-cursor0 to Linux dependencies for Qt 6.5 and up --- action/src/main.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/action/src/main.ts b/action/src/main.ts index 227e834d..73fff410 100644 --- a/action/src/main.ts +++ b/action/src/main.ts @@ -308,9 +308,14 @@ const run = async (): Promise => { "libxkbcommon-dev", "libxkbcommon-x11-0", "libxcb-xkb-dev", - ].join(" "); + ]; + + 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); From 77e470388be01525d13f12e9e2f2be1b08cf72e2 Mon Sep 17 00:00:00 2001 From: Benjamin O Date: Tue, 6 Feb 2024 14:49:47 -0500 Subject: [PATCH 2/2] Add quick comment --- action/src/main.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/action/src/main.ts b/action/src/main.ts index 73fff410..abf64a7c 100644 --- a/action/src/main.ts +++ b/action/src/main.ts @@ -310,6 +310,8 @@ const run = async (): Promise => { "libxcb-xkb-dev", ]; + // 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"); }