mirror of
https://github.com/nimbold/Firelink.git
synced 2026-08-27 19:17:13 +00:00
Revert "fix(linux): make yt-dlp provisioning robust against missing _internal"
This reverts commit 5b4fe6cf82.
This commit is contained in:
@@ -135,17 +135,13 @@ try {
|
|||||||
|
|
||||||
const ytdlp = await download('yt-dlp', targetSources['yt-dlp']);
|
const ytdlp = await download('yt-dlp', targetSources['yt-dlp']);
|
||||||
copyExecutable(
|
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'
|
'yt-dlp'
|
||||||
);
|
);
|
||||||
try {
|
fs.cpSync(path.join(ytdlp, '_internal'), path.join(destination, '_internal'), {
|
||||||
fs.cpSync(path.join(ytdlp, '_internal'), path.join(destination, '_internal'), {
|
recursive: true,
|
||||||
recursive: true,
|
preserveTimestamps: true
|
||||||
preserveTimestamps: true
|
});
|
||||||
});
|
|
||||||
} catch (e) {
|
|
||||||
if (e.code !== 'ENOENT') throw e;
|
|
||||||
}
|
|
||||||
|
|
||||||
const deno = await download('deno', targetSources.deno);
|
const deno = await download('deno', targetSources.deno);
|
||||||
copyExecutable(findFile(deno, isWindows ? ['deno.exe'] : ['deno']), 'deno');
|
copyExecutable(findFile(deno, isWindows ? ['deno.exe'] : ['deno']), 'deno');
|
||||||
|
|||||||
Reference in New Issue
Block a user