🎥 Make videos programmatically with React
fix building on linux
Jonny Burger60c8ffed955b
diff --git a/packages/renderer/build.mjs b/packages/renderer/build.mjsindex cdb95fe18e..29cba8d81c 100644--- a/packages/renderer/build.mjs+++ b/packages/renderer/build.mjs@@ -251,8 +251,9 @@ for (const arch of archs) {// symbols makes it a tiny bit smaller, but error messages will be hard to debug.const rPathOrigin = arch.includes('linux')- ? `-C link-args=-Wl,-rpath,$ORIGIN`+ ? `-C link-args=-Wl,-rpath,'$ORIGIN'`: '';+const optimizations = all? '-C opt-level=3 -C lto=fat -C strip=debuginfo -C embed-bitcode=yes ' +rPathOrigin@@ -303,6 +304,12 @@ for (const arch of archs) {filename,);+ if (arch.includes('linux') && process.platform === 'linux') {+ execSync(+ `patchelf --force-rpath --set-rpath '$ORIGIN' ${copyDestinations[arch].dir}/compositor`,+ );+ }+const filesize = lstatSync(tgzPath).size;console.log('Zipped size:', (filesize / 1000000).toFixed(2) + 'MB');unlinkSync(tgzPath);