Skip to content

Commit

Permalink
fix: skip install libasound if Ubuntu version is not 24.04
Browse files Browse the repository at this point in the history
  • Loading branch information
northword committed Dec 19, 2024
1 parent 6822493 commit 41050bd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/utils/headless.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,12 @@ export async function installXvfb() {
}

export async function installDepsForUbuntu24() {
const version = execSync("cat /etc/os-release | grep '^VERSION_ID='").toString();
if (!(version.includes("24"))) {
logger.error("Skip to install deps due to version not 24.04.");
return;
}

checkAndInstallDependencies(["libasound2t64", "libdbus-glib-1-2"]);
}

Expand Down

0 comments on commit 41050bd

Please sign in to comment.