Skip to content

Commit a327e41

Browse files
committed
Update compile-x265.mjs
1 parent b5e7622 commit a327e41

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

compile-x265.mjs

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,18 @@ export const enableX265 = (isMusl, isWindows, isArm) => {
2222
].filter(Boolean);
2323

2424
if (!fs.existsSync("x265")) {
25-
execSync(
26-
"git clone https://bitbucket.org/multicoreware/x265_git.git x265",
27-
{
25+
if (isArm && isMusl) {
26+
execSync("git clone https://github.com/videolan/x265 x265", {
2827
stdio: "inherit",
29-
}
30-
);
28+
});
29+
} else {
30+
execSync(
31+
"git clone https://bitbucket.org/multicoreware/x265_git.git x265",
32+
{
33+
stdio: "inherit",
34+
}
35+
);
36+
}
3137
}
3238

3339
execSync("git fetch", {

0 commit comments

Comments
 (0)