File tree Expand file tree Collapse file tree 1 file changed +15
-6
lines changed Expand file tree Collapse file tree 1 file changed +15
-6
lines changed Original file line number Diff line number Diff line change 1
- import fs , { readFileSync } from "fs" ;
1
+ import fs , { existsSync , readFileSync , unlinkSync } from "fs" ;
2
+ import path from "path" ;
2
3
import { execSync } from "child_process" ;
3
4
import { PREFIX } from "./const.mjs" ;
5
+ import { compileFunction } from "vm" ;
4
6
5
7
export const enableX265 = ( isMusl , isWindows ) => {
6
8
if ( isWindows ) {
@@ -20,13 +22,20 @@ export const enableX265 = (isMusl, isWindows) => {
20
22
] . filter ( Boolean ) ;
21
23
22
24
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
+ ) ;
27
31
}
28
32
29
- execSync ( "git checkout 6e3f6f1752cf8110cc75a1b9c337c0a8ccac2a81" , {
33
+ execSync ( "git fetch" , {
34
+ cwd : "x265" ,
35
+ stdio : "inherit" ,
36
+ } ) ;
37
+
38
+ execSync ( "git checkout 8f11c33acc267ba3f1d2bde60a6aa906e494cbde" , {
30
39
cwd : "x265" ,
31
40
stdio : "inherit" ,
32
41
} ) ;
You can’t perform that action at this time.
0 commit comments