Skip to content

🎥 Make videos programmatically with React

ensure compositor is up to date before testing

Jonny Burger8884807a3372
diff --git a/packages/compositor-linux-arm64-gnu/compositor b/packages/compositor-linux-arm64-gnu/compositor
index 0d70eaf429..bcf0622847 100755
Binary files a/packages/compositor-linux-arm64-gnu/compositor and b/packages/compositor-linux-arm64-gnu/compositor differ
diff --git a/packages/compositor-linux-x64-gnu/compositor b/packages/compositor-linux-x64-gnu/compositor
index d1cf359d56..f668defdfa 100755
Binary files a/packages/compositor-linux-x64-gnu/compositor and b/packages/compositor-linux-x64-gnu/compositor differ
diff --git a/packages/example/testcloudrun.sh b/packages/example/testcloudrun.sh
index 77f25129df..85e8dc3095 100644
--- a/packages/example/testcloudrun.sh
+++ b/packages/example/testcloudrun.sh
@@ -1,5 +1,8 @@
set -e
cd ..
+cd renderer
+node build.mjs --cloudrun
+cd ..
cd cloudrun
pnpm run buildContainer
cd container
diff --git a/packages/example/testlambda.sh b/packages/example/testlambda.sh
index 84393ea1ea..1f31cc3934 100644
--- a/packages/example/testlambda.sh
+++ b/packages/example/testlambda.sh
@@ -1,5 +1,8 @@
set -e
cd ..
+cd renderer
+node build.mjs --lambda
+cd ..
cd lambda
npm run buildlambda
cd ..
diff --git a/packages/renderer/build.mjs b/packages/renderer/build.mjs
index 296a914409..cbc92e4291 100644
--- a/packages/renderer/build.mjs
+++ b/packages/renderer/build.mjs
@@ -136,6 +136,8 @@ if (!hasCargo()) {
const nativeArch = getTarget();
const all = process.argv.includes('--all');
+const cloudrun = process.argv.includes('--cloudrun');
+const lambda = process.argv.includes('--lambda');
if (!existsSync('toolchains') && all) {
throw new Error(
'Run "node install-toolchain.mjs" if you want to build all platforms'
@@ -164,7 +166,13 @@ if (!rustFfmpegSys) {
const manifest = rustFfmpegSys.manifest_path;
const binariesDirectory = path.join(path.dirname(manifest), 'zips');
-const archs = all ? targets : [nativeArch];
+const archs = all
+ ? targets
+ : lambda
+ ? ['aarch64-unknown-linux-gnu']
+ : cloudrun
+ ? ['x86_64-unknown-linux-gnu']
+ : [nativeArch];
for (const arch of archs) {
const ffmpegFolder = path.join(copyDestinations[arch].dir, 'ffmpeg');