From 29885aa8fd102475109cb1f0eca714d52006f135 Mon Sep 17 00:00:00 2001 From: NimBold Date: Tue, 30 Jun 2026 05:37:23 +0330 Subject: [PATCH] Revert "fix(linux): make yt-dlp provisioning robust against missing _internal" This reverts commit 5b4fe6cf820e142101a64b714790128756bd4c11. --- scripts/provision-engines.js | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/scripts/provision-engines.js b/scripts/provision-engines.js index 6546d39..18dd491 100644 --- a/scripts/provision-engines.js +++ b/scripts/provision-engines.js @@ -135,17 +135,13 @@ try { const ytdlp = await download('yt-dlp', targetSources['yt-dlp']); copyExecutable( - findFile(ytdlp, isWindows ? ['yt-dlp.exe', 'yt-dlp'] : ['yt-dlp_linux', 'yt-dlp']), + findFile(ytdlp, isWindows ? ['yt-dlp.exe'] : ['yt-dlp_linux']), 'yt-dlp' ); - try { - fs.cpSync(path.join(ytdlp, '_internal'), path.join(destination, '_internal'), { - recursive: true, - preserveTimestamps: true - }); - } catch (e) { - if (e.code !== 'ENOENT') throw e; - } + fs.cpSync(path.join(ytdlp, '_internal'), path.join(destination, '_internal'), { + recursive: true, + preserveTimestamps: true + }); const deno = await download('deno', targetSources.deno); copyExecutable(findFile(deno, isWindows ? ['deno.exe'] : ['deno']), 'deno');