tools: deploy.bat, debug.bat

This commit is contained in:
Bill Zissimopoulos 2020-06-09 18:09:56 -07:00
parent 7e37fc57f9
commit dcaa24bc52
No known key found for this signature in database
GPG Key ID: 3D4F95D52C7B3EA3
2 changed files with 22 additions and 1 deletions

View File

@ -12,4 +12,4 @@ reg query %RegKey% /v %RegVal% >nul 2>&1 || (echo Cannot find Windows Kit >&2 &
for /f "tokens=2,*" %%i in ('reg query %RegKey% /v %RegVal% ^| findstr %RegVal%') do ( for /f "tokens=2,*" %%i in ('reg query %RegKey% /v %RegVal% ^| findstr %RegVal%') do (
set KitRoot="%%j" set KitRoot="%%j"
) )
start "winfsp" %KitRoot%\Debuggers\x64\windbg -W %DebugWorkspace% -k net:port=%DebugPort%,key=%DebugKey% start "%DebugWorkspace%" %KitRoot%\Debuggers\x64\windbg -W %DebugWorkspace% -k net:port=%DebugPort%,key=%DebugKey%

View File

@ -11,6 +11,10 @@ set Chkpnt=winfsp
if not X%1==X set Target=%1 if not X%1==X set Target=%1
if not X%2==X set Chkpnt=%2 if not X%2==X set Chkpnt=%2
(
echo regsvr32 /s winfsp-x64.dll
) > %~dp0..\build\VStudio\build\%Config%\deploy-setup.bat
set Files= set Files=
for %%f in (winfsp-%Suffix%.sys winfsp-%Suffix%.dll winfsp-tests-%Suffix%.exe memfs-%Suffix%.exe) do ( for %%f in (winfsp-%Suffix%.sys winfsp-%Suffix%.dll winfsp-tests-%Suffix%.exe memfs-%Suffix%.exe) do (
if [!Files!] == [] ( if [!Files!] == [] (
@ -19,5 +23,22 @@ for %%f in (winfsp-%Suffix%.sys winfsp-%Suffix%.dll winfsp-tests-%Suffix%.exe me
set Files=!Files!,'%~dp0..\build\VStudio\build\%Config%\%%f' set Files=!Files!,'%~dp0..\build\VStudio\build\%Config%\%%f'
) )
) )
set Files=
for %%f in (
%~dp0..\build\VStudio\build\%Config%\
winfsp-%Suffix%.sys
winfsp-%Suffix%.dll
winfsp-tests-%Suffix%.exe
memfs-%Suffix%.exe
deploy-setup.bat
) do (
set File=%%~f
if [!File:~-1!] == [\] (
set Dir=!File!
) else (
if not [!Files!] == [] set Files=!Files!,
set Files=!Files!'!Dir!!File!'
)
)
powershell -NoProfile -ExecutionPolicy Bypass -Command "& '%~dp0deploy.ps1' -Name '%Target%' -CheckpointName '%Chkpnt%' -Files !Files! -Destination '%Deploy%'" powershell -NoProfile -ExecutionPolicy Bypass -Command "& '%~dp0deploy.ps1' -Name '%Target%' -CheckpointName '%Chkpnt%' -Files !Files! -Destination '%Deploy%'"