Skip to content

Commit

Permalink
Add libxcb-cursor0 to Linux dependencies for Qt 6.5 and up
Browse files Browse the repository at this point in the history
  • Loading branch information
IgKh committed Jan 27, 2024
1 parent f769d0f commit 16c52b8
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions action/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -308,9 +308,14 @@ const run = async (): Promise<void> => {
"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);
Expand Down

0 comments on commit 16c52b8

Please sign in to comment.