Skip to content

Commit

Permalink
Merge pull request #221 from IgKh/add-xcb-cursor-dependency
Browse files Browse the repository at this point in the history
Add libxcb-cursor0 to Linux dependencies for Qt 6.5 and up
  • Loading branch information
jurplel authored Feb 6, 2024
2 parents 386bf2f + 77e4703 commit 0455760
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions action/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -308,9 +308,16 @@ const run = async (): Promise<void> => {
"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);
Expand Down

0 comments on commit 0455760

Please sign in to comment.