diff options
author | Bevan Weiss <bevan.weiss@gmail.com> | 2024-06-25 17:58:54 +1000 |
---|---|---|
committer | Bob Arnson <github@bobs.org> | 2024-07-04 19:25:49 -0400 |
commit | 89dc7b47809da06a69811788a1a990e216b81a5c (patch) | |
tree | a90d48b6d6819f9ee70c7dfd9c972a4af3cf3ad4 /src/test | |
parent | 1580bf87f719ddb164f7cb776ff64892f41fc747 (diff) | |
download | wix-89dc7b47809da06a69811788a1a990e216b81a5c.tar.gz wix-89dc7b47809da06a69811788a1a990e216b81a5c.tar.bz2 wix-89dc7b47809da06a69811788a1a990e216b81a5c.zip |
Make faster... don't do both runtime and SDK, SDK is all we need
Fix a couple of copy-paste errors in the "don't have files from
host in Sandbox" path also.
Signed-off-by: Bevan Weiss <bevan.weiss@gmail.com>
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/sandbox/setup_sandbox.bat | 4 | ||||
-rw-r--r-- | src/test/sandbox/startup.bat | 37 |
2 files changed, 22 insertions, 19 deletions
diff --git a/src/test/sandbox/setup_sandbox.bat b/src/test/sandbox/setup_sandbox.bat index a3f0bbfe..c4378f52 100644 --- a/src/test/sandbox/setup_sandbox.bat +++ b/src/test/sandbox/setup_sandbox.bat | |||
@@ -7,9 +7,9 @@ if not exist ARM64 (mkdir ARM64) | |||
7 | REM if not exist VSTest (mkdir VSTest) | 7 | REM if not exist VSTest (mkdir VSTest) |
8 | 8 | ||
9 | @echo on | 9 | @echo on |
10 | curl -L0 https://aka.ms/dotnet/%DOTNET_VERSION%/dotnet-runtime-win-x64.zip --output ".\AMD64\dotnet-runtime.zip" | 10 | REM curl -L0 https://aka.ms/dotnet/%DOTNET_VERSION%/dotnet-runtime-win-x64.zip --output ".\AMD64\dotnet-runtime.zip" |
11 | curl -L0 https://aka.ms/dotnet/%DOTNET_VERSION%/dotnet-sdk-win-x64.zip --output ".\AMD64\dotnet-sdk.zip" | 11 | curl -L0 https://aka.ms/dotnet/%DOTNET_VERSION%/dotnet-sdk-win-x64.zip --output ".\AMD64\dotnet-sdk.zip" |
12 | curl -L0 https://aka.ms/dotnet/%DOTNET_VERSION%/dotnet-runtime-win-arm64.zip --output ".\ARM64\dotnet-runtime.zip" | 12 | REM curl -L0 https://aka.ms/dotnet/%DOTNET_VERSION%/dotnet-runtime-win-arm64.zip --output ".\ARM64\dotnet-runtime.zip" |
13 | curl -L0 https://aka.ms/dotnet/%DOTNET_VERSION%/dotnet-sdk-win-arm64.zip --output ".\ARM64\dotnet-sdk.zip" | 13 | curl -L0 https://aka.ms/dotnet/%DOTNET_VERSION%/dotnet-sdk-win-arm64.zip --output ".\ARM64\dotnet-sdk.zip" |
14 | @echo off | 14 | @echo off |
15 | 15 | ||
diff --git a/src/test/sandbox/startup.bat b/src/test/sandbox/startup.bat index f09feeba..ce0f2bbd 100644 --- a/src/test/sandbox/startup.bat +++ b/src/test/sandbox/startup.bat | |||
@@ -5,21 +5,21 @@ SET SANDBOX_FILES=C:\sandbox | |||
5 | pushd "%TEMP%" | 5 | pushd "%TEMP%" |
6 | 6 | ||
7 | mkdir "%ProgramFiles%\dotnet" | 7 | mkdir "%ProgramFiles%\dotnet" |
8 | @if exist %SANDBOX_FILES%\%PROCESSOR_ARCHITECTURE%\dotnet-runtime.zip ( | 8 | REM @if exist %SANDBOX_FILES%\%PROCESSOR_ARCHITECTURE%\dotnet-runtime.zip ( |
9 | tar -oxzf "%SANDBOX_FILES%\%PROCESSOR_ARCHITECTURE%\dotnet-runtime.zip" -C "%ProgramFiles%\dotnet" | 9 | REM tar -oxzf "%SANDBOX_FILES%\%PROCESSOR_ARCHITECTURE%\dotnet-runtime.zip" -C "%ProgramFiles%\dotnet" |
10 | ) else ( | 10 | REM ) else ( |
11 | if %PROCESSOR_ARCHITECTURE%=="ARM64" ( | 11 | REM if %PROCESSOR_ARCHITECTURE%=="ARM64" ( |
12 | curl -L https://aka.ms/dotnet/%DOTNET_VERSION%/dotnet-runtime-win-arm64.zip --output dotnet-runtime.zip | 12 | REM curl -L https://aka.ms/dotnet/%DOTNET_VERSION%/dotnet-runtime-win-arm64.zip --output dotnet-runtime.zip |
13 | ) else ( | 13 | REM ) else ( |
14 | curl -L https://aka.ms/dotnet/%DOTNET_VERSION%/dotnet-runtime-win-x64.zip --output dotnet-runtime.zip | 14 | REM curl -L https://aka.ms/dotnet/%DOTNET_VERSION%/dotnet-runtime-win-x64.zip --output dotnet-runtime.zip |
15 | ) | 15 | REM ) |
16 | if %errorlevel$ NEQ 0 ( | 16 | REM if %errorlevel% NEQ 0 ( |
17 | echo No pre-provided dotnet runtime, and failed to download. Confirm networking is available. | 17 | REM echo No pre-provided dotnet runtime, and failed to download. Confirm networking is available. |
18 | goto :ERROR | 18 | REM goto :ERROR |
19 | ) | 19 | REM ) |
20 | tar -oxzf dotnet-runtime.zip -C "%ProgramFiles%\dotnet" | 20 | REM tar -oxzf dotnet-runtime.zip -C "%ProgramFiles%\dotnet" |
21 | del dotnet-runtime.zip | 21 | REM del dotnet-runtime.zip |
22 | ) | 22 | REM ) |
23 | 23 | ||
24 | @if exist %SANDBOX_FILES%\%PROCESSOR_ARCHITECTURE%\dotnet-sdk.zip ( | 24 | @if exist %SANDBOX_FILES%\%PROCESSOR_ARCHITECTURE%\dotnet-sdk.zip ( |
25 | tar -oxzf "%SANDBOX_FILES%\%PROCESSOR_ARCHITECTURE%\dotnet-sdk.zip" -C "%ProgramFiles%\dotnet" | 25 | tar -oxzf "%SANDBOX_FILES%\%PROCESSOR_ARCHITECTURE%\dotnet-sdk.zip" -C "%ProgramFiles%\dotnet" |
@@ -27,9 +27,12 @@ mkdir "%ProgramFiles%\dotnet" | |||
27 | if %PROCESSOR_ARCHITECTURE%=="ARM64" ( | 27 | if %PROCESSOR_ARCHITECTURE%=="ARM64" ( |
28 | curl -L https://aka.ms/dotnet/%DOTNET_VERSION%/dotnet-sdk-win-arm64.zip --output dotnet-sdk.zip | 28 | curl -L https://aka.ms/dotnet/%DOTNET_VERSION%/dotnet-sdk-win-arm64.zip --output dotnet-sdk.zip |
29 | ) else ( | 29 | ) else ( |
30 | curl -L https://aka.ms/dotnet/%DOTNET_VERSION%/dotnet-sdk-win-x64.zip --output dotnet-runtime.zip | 30 | curl -L https://aka.ms/dotnet/%DOTNET_VERSION%/dotnet-sdk-win-x64.zip --output dotnet-sdk.zip |
31 | ) | ||
32 | if %errorlevel% NEQ 0 ( | ||
33 | echo "No pre-provided dotnet sdk, and failed to download. Confirm networking is available." | ||
34 | goto ERROR | ||
31 | ) | 35 | ) |
32 | if %errorlevel$ NEQ 0 echo "No pre-provided dotnet sdk, and failed to download. Confirm networking is available." goto exit | ||
33 | tar -oxzf dotnet-sdk.zip -C "%ProgramFiles%\dotnet" | 36 | tar -oxzf dotnet-sdk.zip -C "%ProgramFiles%\dotnet" |
34 | del dotnet-sdk.zip | 37 | del dotnet-sdk.zip |
35 | ) | 38 | ) |