mirror of
https://github.com/Maximus5/ConEmu.git
synced 2025-05-09 01:01:08 +08:00
Internal. powershell execution policy
This commit is contained in:
parent
6e94eed0fe
commit
3b3179c277
@ -1 +1 @@
|
||||
powershell -noprofile -command "%~dp0rc2json.ps1" -mode "wiki"
|
||||
powershell -noprofile -ExecutionPolicy RemoteSigned -command "%~dp0rc2json.ps1" -mode "wiki"
|
@ -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"
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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 %*}"
|
||||
|
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user