Skip to content

Commit 448167d

Browse files
committed
release: Set execution policy.
1 parent 48f62f6 commit 448167d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Flarial.Runtime/Game/MinecraftGDK.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
using System.Management.Automation;
44
using System.Management.Automation.Runspaces;
55
using Flarial.Runtime.Unmanaged;
6+
using Microsoft.PowerShell;
67
using Windows.ApplicationModel;
78
using Windows.Win32.Foundation;
89
using static System.Environment;
@@ -25,6 +26,7 @@ internal MinecraftGDK() : base() { }
2526
static MinecraftGDK()
2627
{
2728
s_state.ImportPSModule(["Appx"]);
29+
s_state.ExecutionPolicy = ExecutionPolicy.Bypass;
2830
s_state.ThreadOptions = PSThreadOptions.UseCurrentThread;
2931
}
3032

0 commit comments

Comments
 (0)