Skip to content

Commit 293fa72

Browse files
committed
Update compile-x265.mjs
1 parent 794a047 commit 293fa72

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

compile-x265.mjs

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

75
export const enableX265 = (isMusl, isWindows) => {
86
if (isWindows) {
@@ -22,7 +20,8 @@ export const enableX265 = (isMusl, isWindows) => {
2220
].filter(Boolean);
2321

2422
if (!fs.existsSync("x265")) {
25-
execSync("git clone https://github.com/videolan/x265 x265", {
23+
// Because https://github.com/videolan/x265/pull/17
24+
execSync("git clone https://github.com/MarkusVolk/x265 x265", {
2625
stdio: "inherit",
2726
});
2827
}
@@ -67,7 +66,6 @@ export const enableX265 = (isMusl, isWindows) => {
6766
[
6867
"cmake",
6968
'-DCMAKE_INSTALL_PREFIX="remotion"',
70-
"-DCMAKE_POLICY_VERSION_MINIMUM=3.5",
7169
"-DENABLE_SHARED:BOOL=OFF",
7270
"-DCMAKE_BUILD_TYPE=Release",
7371
"-DSTATIC_LINK_CRT:BOOL=" + (staticallyLinkCLibrary ? "ON" : "OFF"),

0 commit comments

Comments
 (0)