Skip to content

Commit

Permalink
adapt to new ffmpeg roll
Browse files Browse the repository at this point in the history
  • Loading branch information
Skn0tt committed Dec 19, 2024
1 parent affff4d commit 879afb1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
4 changes: 2 additions & 2 deletions packages/playwright-core/browsers.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@
"revision": "1011",
"installByDefault": true,
"revisionOverrides": {
"mac12": "1010",
"mac12-arm64": "1010"
"mac12": "1011",
"mac12-arm64": "1011"
}
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 879afb1

Please sign in to comment.