Skip to content

Commit

Permalink
Only set openssl-legacy-provider on Windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
grokys committed Feb 16, 2023
1 parent cea9d20 commit a5f20fb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions nukebuild/Build.cs
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,10 @@ DotNetConfigHelper ApplySettingCore(DotNetConfigHelper c)
.SetProcessWorkingDirectory(webappDir)
.SetProcessArgumentConfigurator(a => a.Add("--silent")));
NpmTasks.NpmRun(c => c
.SetProcessEnvironmentVariable("NODE_OPTIONS", "--openssl-legacy-provider")
.SetProcessWorkingDirectory(webappDir)
.SetCommand("dist"));
.SetCommand("dist")
.When(RuntimeInformation.IsOSPlatform(OSPlatform.Windows), d =>
d.SetProcessEnvironmentVariable("NODE_OPTIONS", "--openssl-legacy-provider")));
});

Target CompileNative => _ => _
Expand Down

0 comments on commit a5f20fb

Please sign in to comment.