Skip to content

🎥 Make videos programmatically with React

sync ffmpeg dirs into compositor directories

Jonny Burgerb6eb6d89fb80
diff --git a/packages/compositor-darwin-arm64/.gitignore b/packages/compositor-darwin-arm64/.gitignore
new file mode 100644
index 0000000000..ee95464784
--- /dev/null
+++ b/packages/compositor-darwin-arm64/.gitignore
@@ -0,0 +1,2 @@
+bindings.rs
+ffmpeg
diff --git a/packages/compositor-darwin-x64/.gitignore b/packages/compositor-darwin-x64/.gitignore
new file mode 100644
index 0000000000..ee95464784
--- /dev/null
+++ b/packages/compositor-darwin-x64/.gitignore
@@ -0,0 +1,2 @@
+bindings.rs
+ffmpeg
diff --git a/packages/compositor-linux-arm64-gnu/.gitignore b/packages/compositor-linux-arm64-gnu/.gitignore
new file mode 100644
index 0000000000..ee95464784
--- /dev/null
+++ b/packages/compositor-linux-arm64-gnu/.gitignore
@@ -0,0 +1,2 @@
+bindings.rs
+ffmpeg
diff --git a/packages/compositor-linux-arm64-musl/.gitignore b/packages/compositor-linux-arm64-musl/.gitignore
new file mode 100644
index 0000000000..ee95464784
--- /dev/null
+++ b/packages/compositor-linux-arm64-musl/.gitignore
@@ -0,0 +1,2 @@
+bindings.rs
+ffmpeg
diff --git a/packages/compositor-linux-x64-gnu/.gitignore b/packages/compositor-linux-x64-gnu/.gitignore
new file mode 100644
index 0000000000..ee95464784
--- /dev/null
+++ b/packages/compositor-linux-x64-gnu/.gitignore
@@ -0,0 +1,2 @@
+bindings.rs
+ffmpeg
diff --git a/packages/compositor-linux-x64-musl/.gitignore b/packages/compositor-linux-x64-musl/.gitignore
new file mode 100644
index 0000000000..ee95464784
--- /dev/null
+++ b/packages/compositor-linux-x64-musl/.gitignore
@@ -0,0 +1,2 @@
+bindings.rs
+ffmpeg
diff --git a/packages/compositor-win32-x64-msvc/.gitignore b/packages/compositor-win32-x64-msvc/.gitignore
new file mode 100644
index 0000000000..ee95464784
--- /dev/null
+++ b/packages/compositor-win32-x64-msvc/.gitignore
@@ -0,0 +1,2 @@
+bindings.rs
+ffmpeg
diff --git a/packages/renderer/build.mjs b/packages/renderer/build.mjs
index b800428646..765632b17c 100644
--- a/packages/renderer/build.mjs
+++ b/packages/renderer/build.mjs
@@ -131,6 +131,9 @@ if (!hasCargo()) {
const nativeArch = getTarget();
const archs = process.argv.includes('--all') ? targets : [nativeArch];
for (const arch of archs) {
+ execSync(
+ `tar xvf ffmpeg/${copyDestinations[arch].ffmpeg_bin} -C ${copyDestinations[arch].dir}`
+ );
const command = `cargo build --release --target=${arch}`;
console.log(command);
execSync(command, {