Skip to content

🎥 Make videos programmatically with React

add macos bins

Jonny Burger6cf7c3835ad3
diff --git a/packages/renderer/build.mjs b/packages/renderer/build.mjs
index 2c233ff548..b800428646 100644
--- a/packages/renderer/build.mjs
+++ b/packages/renderer/build.mjs
@@ -123,43 +123,44 @@ const copyDestinations = {
},
};
-if (hasCargo()) {
- const nativeArch = getTarget();
- const archs = process.argv.includes('--all') ? targets : [nativeArch];
- for (const arch of archs) {
- const command = `cargo build --release --target=${arch}`;
- console.log(command);
- execSync(command, {
- stdio: 'inherit',
- env: {
- ...process.env,
- FFMPEG_DIR: path.join(
- process.cwd(),
- copyDestinations[arch].dir,
- 'ffmpeg',
- 'remotion'
- ),
- CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER:
- nativeArch === 'aarch64-unknown-linux-gnu'
- ? undefined
- : 'aarch64-unknown-linux-gnu-gcc',
- CARGO_TARGET_AARCH64_UNKNOWN_LINUX_MUSL_LINKER:
- nativeArch === 'aarch64-unknown-linux-musl'
- ? undefined
- : 'aarch64-unknown-linux-musl-gcc',
- CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_LINKER:
- nativeArch === 'x86_64-unknown-linux-gnu'
- ? undefined
- : 'x86_64-unknown-linux-gnu-gcc',
- CARGO_TARGET_X86_64_UNKNOWN_LINUX_MUSL_LINKER:
- nativeArch === 'x86_64-unknown-linux-musl'
- ? undefined
- : 'x86_64-unknown-linux-musl-gcc',
- },
- });
- const copyInstructions = copyDestinations[arch];
- copyFileSync(copyInstructions.from, copyInstructions.to);
- }
-} else {
+if (!hasCargo()) {
console.log('Environment has no cargo. Skipping Rust builds.');
+ process.exit(0);
+}
+
+const nativeArch = getTarget();
+const archs = process.argv.includes('--all') ? targets : [nativeArch];
+for (const arch of archs) {
+ const command = `cargo build --release --target=${arch}`;
+ console.log(command);
+ execSync(command, {
+ stdio: 'inherit',
+ env: {
+ ...process.env,
+ FFMPEG_DIR: path.join(
+ process.cwd(),
+ copyDestinations[arch].dir,
+ 'ffmpeg',
+ 'remotion'
+ ),
+ CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER:
+ nativeArch === 'aarch64-unknown-linux-gnu'
+ ? undefined
+ : 'aarch64-unknown-linux-gnu-gcc',
+ CARGO_TARGET_AARCH64_UNKNOWN_LINUX_MUSL_LINKER:
+ nativeArch === 'aarch64-unknown-linux-musl'
+ ? undefined
+ : 'aarch64-unknown-linux-musl-gcc',
+ CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_LINKER:
+ nativeArch === 'x86_64-unknown-linux-gnu'
+ ? undefined
+ : 'x86_64-unknown-linux-gnu-gcc',
+ CARGO_TARGET_X86_64_UNKNOWN_LINUX_MUSL_LINKER:
+ nativeArch === 'x86_64-unknown-linux-musl'
+ ? undefined
+ : 'x86_64-unknown-linux-musl-gcc',
+ },
+ });
+ const copyInstructions = copyDestinations[arch];
+ copyFileSync(copyInstructions.from, copyInstructions.to);
}
diff --git a/packages/renderer/ffmpeg/SOURCE.md b/packages/renderer/ffmpeg/SOURCE.md
new file mode 100644
index 0000000000..c4a3cb6b45
--- /dev/null
+++ b/packages/renderer/ffmpeg/SOURCE.md
@@ -0,0 +1 @@
+These binaries have been generated on CircleCI using https://github.com/remotion-dev/rust-ffmpeg-splitter
diff --git a/packages/renderer/ffmpeg/macos-arm.gz b/packages/renderer/ffmpeg/macos-arm.gz
new file mode 100644
index 0000000000..6bac355f69
Binary files /dev/null and b/packages/renderer/ffmpeg/macos-arm.gz differ