Skip to content

Commit 1488a4e

Browse files
authored
chore: Modify chromium install options (#10432)
chore: modify chromium install options
1 parent 1ebf1ba commit 1488a4e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Docfx.App/PdfBuilder.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public static async Task CreatePdf(string outputFolder)
6767

6868
PlaywrightHelper.EnsurePlaywrightNodeJsPath();
6969

70-
Program.Main(["install", "chromium"]);
70+
Program.Main(["install", "chromium", "--only-shell"]);
7171

7272
var builder = WebApplication.CreateBuilder();
7373
builder.Logging.ClearProviders();

test/docfx.Snapshot.Tests/PercyTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public PercyFactAttribute()
3939
static PercyTest()
4040
{
4141
PlaywrightHelper.EnsurePlaywrightNodeJsPath();
42-
Microsoft.Playwright.Program.Main(["install", "chromium"]);
42+
Microsoft.Playwright.Program.Main(["install", "chromium", "--only-shell"]);
4343
}
4444

4545
[PercyFact]

0 commit comments

Comments
 (0)