From 55181b779a9da4693bd63e45a4a8bebd7b724dd5 Mon Sep 17 00:00:00 2001 From: Rick Butterfield Date: Mon, 16 Dec 2024 16:13:53 +0000 Subject: [PATCH] v3.0.1 --- .../public/umbraco-package.json | 2 +- .../SustainabilityComposer.cs | 5 ++++- .../Umbraco.Community.Sustainability.csproj | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/Umbraco.Community.Sustainability.UI/public/umbraco-package.json b/src/Umbraco.Community.Sustainability.UI/public/umbraco-package.json index 03c973a..5e7a29a 100644 --- a/src/Umbraco.Community.Sustainability.UI/public/umbraco-package.json +++ b/src/Umbraco.Community.Sustainability.UI/public/umbraco-package.json @@ -2,7 +2,7 @@ "$schema": "../umbraco-package-schema.json", "name": "Umbraco.Community.Sustainability", "id": "Umbraco.Community.Sustainability", - "version": "3.0.0", + "version": "3.0.1", "allowTelemetry": true, "extensions": [ { diff --git a/src/Umbraco.Community.Sustainability/SustainabilityComposer.cs b/src/Umbraco.Community.Sustainability/SustainabilityComposer.cs index fbeb8c1..dc3eb53 100644 --- a/src/Umbraco.Community.Sustainability/SustainabilityComposer.cs +++ b/src/Umbraco.Community.Sustainability/SustainabilityComposer.cs @@ -11,7 +11,10 @@ internal class SustainabilityComposer : IComposer { public void Compose(IUmbracoBuilder builder) { - var exitCode = Microsoft.Playwright.Program.Main(new[] { "install" }); + string value = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData); + Environment.SetEnvironmentVariable("PLAYWRIGHT_BROWSERS_PATH", $"{value}{Path.DirectorySeparatorChar}ms-playwright"); + + var exitCode = Microsoft.Playwright.Program.Main(new[] { "install", "chromium" }); if (exitCode != 0) { throw new Exception($"Playwright exited with code {exitCode}"); diff --git a/src/Umbraco.Community.Sustainability/Umbraco.Community.Sustainability.csproj b/src/Umbraco.Community.Sustainability/Umbraco.Community.Sustainability.csproj index d6cf2dd..e19dd45 100644 --- a/src/Umbraco.Community.Sustainability/Umbraco.Community.Sustainability.csproj +++ b/src/Umbraco.Community.Sustainability/Umbraco.Community.Sustainability.csproj @@ -16,7 +16,7 @@ Umbraco.Community.Sustainability True - 3.0.0 + 3.0.1 Umbraco Sustainability Community Team $([System.DateTime]::UtcNow.ToString(`yyyy`)) © Umbraco Sustainability Community Team