Skip to content

Commit 656f373

Browse files
committed
Update compile-x265.mjs
1 parent e686d03 commit 656f373

File tree

1 file changed

+15
-6
lines changed

1 file changed

+15
-6
lines changed

compile-x265.mjs

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
import fs, { readFileSync } from "fs";
1+
import fs, { existsSync, readFileSync, unlinkSync } from "fs";
2+
import path from "path";
23
import { execSync } from "child_process";
34
import { PREFIX } from "./const.mjs";
5+
import { compileFunction } from "vm";
46

57
export const enableX265 = (isMusl, isWindows) => {
68
if (isWindows) {
@@ -20,13 +22,20 @@ export const enableX265 = (isMusl, isWindows) => {
2022
].filter(Boolean);
2123

2224
if (!fs.existsSync("x265")) {
23-
// Because https://github.com/videolan/x265/pull/17
24-
execSync("git clone https://github.com/MarkusVolk/x265 x265", {
25-
stdio: "inherit",
26-
});
25+
execSync(
26+
"git clone https://bitbucket.org/multicoreware/x265_git.git x265",
27+
{
28+
stdio: "inherit",
29+
}
30+
);
2731
}
2832

29-
execSync("git checkout 6e3f6f1752cf8110cc75a1b9c337c0a8ccac2a81", {
33+
execSync("git fetch", {
34+
cwd: "x265",
35+
stdio: "inherit",
36+
});
37+
38+
execSync("git checkout 8f11c33acc267ba3f1d2bde60a6aa906e494cbde", {
3039
cwd: "x265",
3140
stdio: "inherit",
3241
});

0 commit comments

Comments
 (0)