summaryrefslogtreecommitdiff
path: root/src/test/sandbox/setup_sandbox.bat
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/sandbox/setup_sandbox.bat')
-rw-r--r--src/test/sandbox/setup_sandbox.bat27
1 files changed, 18 insertions, 9 deletions
diff --git a/src/test/sandbox/setup_sandbox.bat b/src/test/sandbox/setup_sandbox.bat
index dc462324..fac7ec4c 100644
--- a/src/test/sandbox/setup_sandbox.bat
+++ b/src/test/sandbox/setup_sandbox.bat
@@ -1,4 +1,4 @@
1@setlocal 1@setlocal enabledelayedexpansion
2@echo off 2@echo off
3SET DOTNET_VERSION=8.0 3SET DOTNET_VERSION=8.0
4 4
@@ -20,19 +20,28 @@ goto MENU
20 20
21:EXE 21:EXE
22echo EXE> dotnet.cfg 22echo EXE> dotnet.cfg
23if not exist .\assets mkdir .\assets
23if %PROCESSOR_ARCHITECTURE%=="ARM64" ( 24if %PROCESSOR_ARCHITECTURE%=="ARM64" (
24 curl -L0 https://aka.ms/dotnet/%DOTNET_VERSION%/dotnet-sdk-win-arm64.exe --output ".\dotnet-sdk.exe" 25 curl -L0 https://aka.ms/dotnet/%DOTNET_VERSION%/dotnet-sdk-win-arm64.exe --output ".\assets\dotnet-sdk-64.exe"
26 curl -L0 https://aka.ms/dotnet/%DOTNET_VERSION%/windowsdesktop-runtime-win-arm64.exe --output ".\assets\windowsdesktop-runtime-64.exe"
25) else ( 27) else (
26 curl -L0 https://aka.ms/dotnet/%DOTNET_VERSION%/dotnet-sdk-win-x64.exe --output ".\dotnet-sdk.exe" 28 curl -L0 https://aka.ms/dotnet/%DOTNET_VERSION%/dotnet-sdk-win-x64.exe --output ".\assets\dotnet-sdk-64.exe"
29 curl -L0 https://aka.ms/dotnet/%DOTNET_VERSION%/windowsdesktop-runtime-win-x86.exe --output ".\assets\windowsdesktop-runtime-x86.exe"
30 curl -L0 https://aka.ms/dotnet/%DOTNET_VERSION%/windowsdesktop-runtime-win-x64.exe --output ".\assets\windowsdesktop-runtime-64.exe"
27) 31)
28goto VSDEBUG 32goto VSDEBUG
29 33
30:ZIP 34:ZIP
31echo ZIP> dotnet.cfg 35echo ZIP> dotnet.cfg
36if not exist .\assets mkdir .\assets
32if %PROCESSOR_ARCHITECTURE%=="ARM64" ( 37if %PROCESSOR_ARCHITECTURE%=="ARM64" (
33 curl -L0 https://aka.ms/dotnet/%DOTNET_VERSION%/dotnet-sdk-win-arm64.zip --output ".\dotnet-sdk.zip" 38 curl -L0 https://aka.ms/dotnet/%DOTNET_VERSION%/dotnet-sdk-win-arm64.zip --output ".\assets\dotnet-sdk-64.zip"
39 curl -L0 https://aka.ms/dotnet/%DOTNET_VERSION%/windowsdesktop-runtime-win-arm64.zip --output ".\assets\windowsdesktop-runtime-64.zip"
34) else ( 40) else (
35 curl -L0 https://aka.ms/dotnet/%DOTNET_VERSION%/dotnet-sdk-win-x64.zip --output ".\dotnet-sdk.zip" 41 curl -L0 https://aka.ms/dotnet/%DOTNET_VERSION%/dotnet-sdk-win-x64.zip --output ".\assets\dotnet-sdk-64.zip"
42 curl -L0 https://aka.ms/dotnet/%DOTNET_VERSION%/windowsdesktop-runtime-win-x64.zip --output ".\assets\windowsdesktop-runtime-64.zip"
43 curl -L0 https://aka.ms/dotnet/%DOTNET_VERSION%/dotnet-runtime-win-x86.zip --output ".\assets\dotnet-runtime-x86.zip"
44 curl -L0 https://aka.ms/dotnet/%DOTNET_VERSION%/windowsdesktop-runtime-win-x86.zip --output ".\assets\windowsdesktop-runtime-x86.zip"
36) 45)
37goto VSDEBUG 46goto VSDEBUG
38 47
@@ -49,15 +58,15 @@ if not "!VsInstallDir!"=="" (
49 echo. 58 echo.
50 echo Have found VisualStudio Debugger at '%VsInstallDir%' 59 echo Have found VisualStudio Debugger at '%VsInstallDir%'
51 set /P "Confirm=Do you wish to copy it for use by the Sandbox? (Y / N):" 60 set /P "Confirm=Do you wish to copy it for use by the Sandbox? (Y / N):"
52 if "%Confirm%"=="Y" goto VSDEBUG_COPY 61 if "!Confirm!"=="Y" goto VSDEBUG_COPY
53 if "%Confirm%"=="y" goto VSDEBUG_COPY 62 if "!Confirm!"=="y" goto VSDEBUG_COPY
54 goto END 63 goto END
55) 64)
56goto END 65goto END
57 66
58:VSDEBUG_COPY 67:VSDEBUG_COPY
59if not exist Debugger (mkdir Debugger) 68if not exist ".\assets\Debugger" (mkdir ".\assets\Debugger")
60XCOPY "%VsInstallDir%\Common7\IDE\Remote Debugger\*" ".\Debugger\" /E /Y > nul 69XCOPY "%VsInstallDir%\Common7\IDE\Remote Debugger\*" ".\assets\Debugger\" /E /Y > nul
61echo Debugger files copied 70echo Debugger files copied
62 71
63 72