Skip to content

Commit 93b20aa

Browse files
committed
utils: add a helper to launch build.ps1
When using build.ps1 as a developer, we may be working in a shell that does not have the ability to run the PowerShell script due to signing. Add a little helper that launches the script properly to not require the user to disable code signature on scripts.
1 parent 6589897 commit 93b20aa

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

utils/build.cmd

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
@echo off
2+
setlocal
3+
if "%1"=="/?" (
4+
powershell.exe -Command "& Get-Help -Detailed .\build.ps1"
5+
exit /b
6+
)
7+
8+
powershell.exe -ExecutionPolicy RemoteSigned -File "%~dp0\build.ps1" %*
9+
endlocal

0 commit comments

Comments
 (0)