2019-09-05 00:26:26 +08:00
|
|
|
cd /D "%~dp0"
|
|
|
|
|
2021-12-18 10:15:31 +08:00
|
|
|
REM Just in case CDPx (Legacy) doesn't do it
|
|
|
|
git submodule update --init --recursive
|
|
|
|
|
2019-10-10 03:21:21 +08:00
|
|
|
nuget restore ../PowerToys.sln || exit /b 1
|
2021-06-29 18:06:12 +08:00
|
|
|
|
|
|
|
powershell.exe -Command "Invoke-WebRequest -OutFile %tmp%\wdksetup.exe https://go.microsoft.com/fwlink/p/?linkid=2085767"
|
|
|
|
%tmp%\wdksetup.exe /q
|
|
|
|
|
|
|
|
copy "C:\Program Files (x86)\Windows Kits\10\Vsix\VS2019\WDK.vsix" %tmp%\wdkvsix.zip
|
|
|
|
powershell Expand-Archive %tmp%\wdkvsix.zip -DestinationPath %tmp%\wdkvsix -Force
|
|
|
|
|
|
|
|
robocopy /e %tmp%\wdkvsix\$MSBuild\Microsoft\VC\v160 "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Microsoft\VC\v160" || IF %ERRORLEVEL% LEQ 7 EXIT 0
|
|
|
|
robocopy /e %tmp%\wdkvsix\$VCTargets "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\VC\VCTargets" || IF %ERRORLEVEL% LEQ 7 EXIT 0
|