adapt to new ffmpeg roll
This commit is contained in:
parent
affff4d6ec
commit
879afb1fb6
|
|
@ -48,8 +48,8 @@
|
||||||
"revision": "1011",
|
"revision": "1011",
|
||||||
"installByDefault": true,
|
"installByDefault": true,
|
||||||
"revisionOverrides": {
|
"revisionOverrides": {
|
||||||
"mac12": "1010",
|
"mac12": "1011",
|
||||||
"mac12-arm64": "1010"
|
"mac12-arm64": "1011"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -150,13 +150,7 @@ async function downloadAndExtractBrotli(options: DownloadParams) {
|
||||||
await pipeline(
|
await pipeline(
|
||||||
response,
|
response,
|
||||||
createBrotliDecompress(),
|
createBrotliDecompress(),
|
||||||
tarFs.extract(options.browserDirectory, {
|
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('/'));
|
|
||||||
}
|
|
||||||
})
|
|
||||||
);
|
);
|
||||||
|
|
||||||
if (downloadedBytes !== totalBytes)
|
if (downloadedBytes !== totalBytes)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue