Internal. powershell execution policy

This commit is contained in:
Maximus5 2021-06-21 13:32:57 +02:00
parent 6e94eed0fe
commit 3b3179c277
6 changed files with 6 additions and 6 deletions

View File

@ -1 +1 @@
powershell -noprofile -command "%~dp0rc2json.ps1" -mode "wiki"
powershell -noprofile -ExecutionPolicy RemoteSigned -command "%~dp0rc2json.ps1" -mode "wiki"

View File

@ -1,4 +1,4 @@
@setlocal
@set dt=%date:~8,2%%date:~3,2%%date:~0,2%
@powershell -noprofile -command "%~dp0github-release-downloads.ps1" > "%~dp0downloads-%dt%.txt"
@powershell -noprofile -ExecutionPolicy RemoteSigned -command "%~dp0github-release-downloads.ps1" > "%~dp0downloads-%dt%.txt"
@type "%~dp0downloads-%dt%.txt"

View File

@ -11,7 +11,7 @@ if exist "%~dp0..\Deploy\user_env.cmd" (
)
call "%~dp0..\Deploy\GetCurVer.cmd"
powershell -noprofile -command "%~dp0..\Deploy\UpdatePackageVersions.ps1" %CurVerBuild%
powershell -noprofile -ExecutionPolicy RemoteSigned -command "%~dp0..\Deploy\UpdatePackageVersions.ps1" %CurVerBuild%
if errorlevel 1 (
call cecho "Failed to update Chocolatey and Nuget packages"
exit /b 100

View File

@ -15,7 +15,7 @@ if exist %DEST_FILE% del %DEST_FILE%
find "<UACExecutionLevel>RequireAdministrator</UACExecutionLevel>" Executor.vcxproj 1> nul
if errorlevel 1 (
echo RequireAdministrator should be set in project, patching...
powershell -noprofile .\patch_project.ps1
powershell -noprofile -ExecutionPolicy RemoteSigned .\patch_project.ps1
)
find "<UACExecutionLevel>RequireAdministrator</UACExecutionLevel>" Executor.vcxproj 1> nul

View File

@ -3,4 +3,4 @@
@rem Usage: add-src Dummy.cpp Dummy.hpp
@rem Must(!) be called from the folder with VC project files
powershell -noprofile -command "& {%~dp0PrjEdit.ps1 %*}"
powershell -noprofile -ExecutionPolicy RemoteSigned -command "& {%~dp0PrjEdit.ps1 %*}"

View File

@ -6,6 +6,6 @@ echo Examp: new-class RealConsole CRealCosole
exit /b 1
)
powershell -noprofile -command "& {%~dp0NewClass.ps1 '%~1' '%~2'}"
powershell -noprofile -ExecutionPolicy RemoteSigned -command "& {%~dp0NewClass.ps1 '%~1' '%~2'}"
call "%~dp0add-src.cmd" "%~1.cpp" "%~1.h"