adapt to new ffmpeg roll

This commit is contained in:
Simon Knott 2024-12-19 16:50:07 +01:00
parent affff4d6ec
commit 879afb1fb6
No known key found for this signature in database
GPG key ID: 8CEDC00028084AEC
2 changed files with 3 additions and 9 deletions

View file

@ -48,8 +48,8 @@
"revision": "1011",
"installByDefault": true,
"revisionOverrides": {
"mac12": "1010",
"mac12-arm64": "1010"
"mac12": "1011",
"mac12-arm64": "1011"
}
},
{

View file

@ -150,13 +150,7 @@ async function downloadAndExtractBrotli(options: DownloadParams) {
await pipeline(
response,
createBrotliDecompress(),
tarFs.extract(options.browserDirectory, {
map(header: { name: string }) {
// manually-created ffmpeg archive has files nested in subdirectory
if (header.name.startsWith('ffmpeg-'))
header.name = header.name.substring(header.name.indexOf('/'));
}
})
tarFs.extract(options.browserDirectory)
);
if (downloadedBytes !== totalBytes)