@@ -50,6 +50,8 @@ del /f /q "%UniversalCRTSdkDir%\Include\%UCRTVersion%\um\module.modulemap"
50
50
del /f /q " %VCToolsInstallDir% \include\module.modulemap"
51
51
del /f /q " %VCToolsInstallDir% \include\vcruntime.apinotes"
52
52
53
+ call :FetchWiX || (exit /b)
54
+ call :FetchX64Toolchain || (exit /b)
53
55
call :CloneDependencies || (exit /b)
54
56
call :CloneRepositories || (exit /b)
55
57
@@ -815,6 +817,30 @@ git clone --quiet --no-tags --depth 1 --branch curl-7_77_0 https://github.com/cu
815
817
goto :eof
816
818
endlocal
817
819
820
+ :FetchWiX
821
+ setlocal enableextensions enabledelayedexpansion
822
+
823
+ curl.exe -sL https://www.nuget.org/api/v2/package/wix/4.0.1 -o wix-4.0.1.zip
824
+ md WiX-4.0.1 || exit (/b)
825
+ cd WiX-4.0.1 || exit (/b)
826
+ tar -xf ../wix-4.0.1.zip || exit (/b)
827
+
828
+ goto :eof
829
+ endlocal
830
+
831
+ :FetchX64Toolchain
832
+ setlocal enableextensions enabledelayedexpansion
833
+
834
+ curl.exe -OL --ssl " download.swift.org/development/windows10/swift-DEVELOPMENT-SNAPSHOT-2023-08-12-a/swift-DEVELOPMENT-SNAPSHOT-2023-08-12-a-windows10.exe" || (exit /b)
835
+ " WiX-4.0.1\tools\net6.0\any\wix.exe" burn extract swift-DEVELOPMENT-SNAPSHOT-2023-08-12-a-windows10.exe -o %BuildRoot% \toolchains || (exit /b)
836
+ msiexec.exe /qn /a " %BuildRoot% \toolchains\a0" TARGETDIR=" %BuildRoot% \toolchains\swift-DEVELOPMENT-SNAPSHOT-2023-08-12-a\PFiles64\Swift\Runtimes\0.0.0\usr\bin\ || (exit /b)
837
+ msiexec.exe /qn /a " %BuildRoot% \toolchains\a1" TARGETDIR=" %BuildRoot% \toolchains\swift-DEVELOPMENT-SNAPSHOT-2023-08-12-a\ || (exit /b)
838
+ msiexec.exe /qn /a " %BuildRoot% \toolchains\a2" TARGETDIR=" %BuildRoot% \toolchains\swift-DEVELOPMENT-SNAPSHOT-2023-08-12-a\ || (exit /b)
839
+ msiexec.exe /qn /a " %BuildRoot% \toolchains\a5" TARGETDIR=" %BuildRoot% \toolchains\swift-DEVELOPMENT-SNAPSHOT-2023-08-12-a\ || (exit /b)
840
+
841
+ goto :eof
842
+ endlocal
843
+
818
844
:TestSwift
819
845
setlocal enableextensions enabledelayedexpansion
820
846
0 commit comments