Skip to content

Commit

Permalink
v3.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
rickbutterfield committed Dec 16, 2024
1 parent f0fdbae commit 55181b7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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}");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<RootNamespace>Umbraco.Community.Sustainability</RootNamespace>
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>

<VersionPrefix>3.0.0</VersionPrefix>
<VersionPrefix>3.0.1</VersionPrefix>
<VersionSuffix></VersionSuffix>
<Authors>Umbraco Sustainability Community Team</Authors>
<Copyright>$([System.DateTime]::UtcNow.ToString(`yyyy`)) © Umbraco Sustainability Community Team</Copyright>
Expand Down

0 comments on commit 55181b7

Please sign in to comment.