Record your screen, ship a demo. Free and open-source, GPU-accelerated, no watermarks, no subscriptions. Windows, macOS, Linux. Actively maintained.
TypeScript cross-platformelectronffmpegopen-sourceproduct-demorustscreen-capturescreen-recorderscreen-recordingscreen-studioscreencastspeech-to-texttypescriptvideo-editingvideo-editorwaylandwgpuwhisper
fix(build): rendre effectifs deux garde-fous qui passaient à vide
Etienne Lescot3f0ec8a01700
diff --git a/.github/workflows/build.yml b/.github/workflows/build.ymlindex ef9019964..76ac9ef39 100644--- a/.github/workflows/build.yml+++ b/.github/workflows/build.yml@@ -415,14 +415,12 @@ jobs:path: artifacts/windows- name: Download macOS arm64 DMG- continue-on-error: trueuses: actions/download-artifact@v4with:name: openscreen-mac-arm64path: artifacts/mac-arm64- name: Download macOS x64 DMG- continue-on-error: trueuses: actions/download-artifact@v4with:name: openscreen-mac-x64diff --git a/scripts/fetch-ffmpeg.mjs b/scripts/fetch-ffmpeg.mjsindex ed1de5b08..1c42a92ce 100644--- a/scripts/fetch-ffmpeg.mjs+++ b/scripts/fetch-ffmpeg.mjs@@ -190,7 +190,11 @@ function assertLgpl(exePath, extraEnv) {// Belt and braces: whatever the flags claim, the binary must not actually// expose a GPL encoder.- const encoders = run(exePath, ["-hide_banner", "-encoders"]).stdout ?? "";+ // `opts` here too: without it a SHARED build cannot resolve its own libav*.so,+ // prints nothing, and this check passes on an empty string — silently vouching+ // for exactly the binaries it exists to reject. Measured: 0 bytes without the+ // env, 229 encoders with it.+ const encoders = run(exePath, ["-hide_banner", "-encoders"], opts).stdout ?? "";for (const lib of ["libx264", "libx265"]) {if (new RegExp(`\\s${lib}\\s`).test(encoders)) problems.push(`exposes the ${lib} encoder`);}@@ -202,7 +206,7 @@ function assertLgpl(exePath, extraEnv) {"Bundling it would relicense OpenScreen under the GPL.",);}- const ver = run(exePath, ["-hide_banner", "-version"]).stdout ?? "";+ const ver = run(exePath, ["-hide_banner", "-version"], opts).stdout ?? "";return ver.split("\n")[0]?.trim() ?? "";}