🎥 Make videos programmatically with React
alright
Jonny Burgerf2ac9ea95ed7
diff --git a/packages/Cargo.toml b/packages/Cargo.tomlindex 32eb951c79..b29bd57c51 100644--- a/packages/Cargo.toml+++ b/packages/Cargo.toml@@ -22,5 +22,8 @@ name = "compositor"path = "renderer/rust/main.rs"[profile.release]+# debuginfo will keep symbols, which are used for backtrace.+# symbols makes it a tiny bit smaller, but error messages will be hard to debug.+strip="debuginfo"lto = "fat"opt-level = 'z'diff --git a/packages/renderer/build.mjs b/packages/renderer/build.mjsindex 2243a9f9e5..4a96c0031e 100644--- a/packages/renderer/build.mjs+++ b/packages/renderer/build.mjs@@ -201,7 +201,6 @@ for (const arch of archs) {nativeArch === 'x86_64-unknown-linux-musl'? undefined: 'toolchains/x86_64_musl_toolchain/bin/x86_64-unknown-linux-musl-gcc',- RUST_BACKTRACE: '1',},});const copyInstructions = copyDestinations[arch];diff --git a/packages/renderer/src/call-ffmpeg.ts b/packages/renderer/src/call-ffmpeg.tsindex ae462eefa6..58548131cf 100644--- a/packages/renderer/src/call-ffmpeg.ts+++ b/packages/renderer/src/call-ffmpeg.ts@@ -11,7 +11,6 @@ export const dynamicLibraryPathOptions = () => {process.platform === 'darwin'? {DYLD_LIBRARY_PATH: lib,- RUST_BACKTRACE: '1',}: process.platform === 'win32'? {diff --git a/packages/renderer/src/compositor/compositor.ts b/packages/renderer/src/compositor/compositor.tsindex 4e4a910ffc..d60409760f 100644--- a/packages/renderer/src/compositor/compositor.ts+++ b/packages/renderer/src/compositor/compositor.ts@@ -75,13 +75,11 @@ export const startCompositor = <T extends keyof CompositorCommand>(},};- const child = spawn(bin, [JSON.stringify(fullCommand)], {- ...dynamicLibraryPathOptions(),- env: {- ...dynamicLibraryPathOptions().env,- RUST_BACKTRACE: 'full',- },- });+ const child = spawn(+ bin,+ [JSON.stringify(fullCommand)],+ dynamicLibraryPathOptions()+ );const stderrChunks: Buffer[] = [];let outputBuffer = Buffer.from('');