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 26, 2024
1 parent f769d0f commit a81bcad
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion action/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ const run = async (): Promise<void> => {
// default on Ubuntu.
if (process.platform === "linux") {
if (inputs.installDeps) {
const dependencies = [
let dependencies = [
"build-essential",
"libgl1-mesa-dev",
"libgstreamer-gl1.0-0",
Expand All @@ -309,6 +309,11 @@ const run = async (): Promise<void> => {
"libxkbcommon-x11-0",
"libxcb-xkb-dev",
].join(" ");

if (compareVersions(inputs.version, ">=", "6.5.0")) {
dependencies += " libxcb-cursor0";
}

const updateCommand = "apt-get update";
const installCommand = `apt-get install ${dependencies} -y`;
if (inputs.installDeps === "nosudo") {
Expand Down

0 comments on commit a81bcad

Please sign in to comment.