Skip to content

Commit b5e7622

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

File tree

1 file changed

+10
-13
lines changed

1 file changed

+10
-13
lines changed

compile-x265.mjs

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

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

3933
execSync("git fetch", {
@@ -42,12 +36,15 @@ export const enableX265 = (isMusl, isWindows, isArm) => {
4236
});
4337

4438
if (isArm && isMusl) {
45-
execSync("git checkout 8f11c33acc267ba3f1d2bde60a6aa906e494cbde", {
39+
// stable as marked on the github repo
40+
// for older cmake versions
41+
execSync("git checkout 02d2f496c94c0ef253766b826d95af3404b2781e", {
4642
cwd: "x265",
4743
stdio: "inherit",
4844
});
4945
} else {
50-
execSync("git checkout stable", {
46+
// for newer cmake versions
47+
execSync("git checkout 8f11c33acc267ba3f1d2bde60a6aa906e494cbde", {
5148
cwd: "x265",
5249
stdio: "inherit",
5350
});

0 commit comments

Comments
 (0)