From 010218b5cea076783e6f1b013ece85658c8a2309 Mon Sep 17 00:00:00 2001 From: Jeremy Wu Date: Thu, 1 Aug 2019 23:27:21 +1000 Subject: [PATCH] Fix post_build.ps1 script failing due to PS ExecutionPolicy --- Wox/Wox.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Wox/Wox.csproj b/Wox/Wox.csproj index 48a5c8697b..eaebb9a722 100644 --- a/Wox/Wox.csproj +++ b/Wox/Wox.csproj @@ -462,7 +462,7 @@ - powershell.exe -NoProfile -File $(SolutionDir)Scripts\post_build.ps1 $(ConfigurationName) $(SolutionDir) + powershell -command "$policy = Get-ExecutionPolicy"; "Set-ExecutionPolicy RemoteSigned"; "'-NoProfile -File $(SolutionDir)Scripts\post_build.ps1 $(ConfigurationName) $(SolutionDir)'"; "Set-ExecutionPolicy $policy" taskkill /f /fi "IMAGENAME eq Wox.exe"