Skip to content

Commit 41050bd

Browse files
committed
fix: skip install libasound if Ubuntu version is not 24.04
ref: #74 (comment)
1 parent 6822493 commit 41050bd

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/utils/headless.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,12 @@ export async function installXvfb() {
5353
}
5454

5555
export async function installDepsForUbuntu24() {
56+
const version = execSync("cat /etc/os-release | grep '^VERSION_ID='").toString();
57+
if (!(version.includes("24"))) {
58+
logger.error("Skip to install deps due to version not 24.04.");
59+
return;
60+
}
61+
5662
checkAndInstallDependencies(["libasound2t64", "libdbus-glib-1-2"]);
5763
}
5864

0 commit comments

Comments
 (0)