Skip to content

Commit b325f2a

Browse files
authored
Merge pull request #67654 from tristanlabelle/build-windows-toolchain-runtimemsi-path
Update path to runtime msi wixproj in the Windows build
2 parents 62bd4f2 + 2e09edf commit b325f2a

File tree

1 file changed

+15
-29
lines changed

1 file changed

+15
-29
lines changed

utils/build-windows-toolchain.bat

Lines changed: 15 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -932,9 +932,7 @@ setlocal enableextensions enabledelayedexpansion
932932
msbuild %SourceRoot%\swift-installer-scripts\platforms\Windows\bld\bld.wixproj ^
933933
-restore ^
934934
-p:Configuration=Release ^
935-
-p:IntermediateOutputPath=%PackageRoot%\bld\ ^
936-
-p:OutputPath=%PackageRoot%\bld\ ^
937-
-p:RunWixToolsOutOfProc=true ^
935+
-p:BaseOutputPath=%PackageRoot%\bld\ ^
938936
-p:DEVTOOLS_ROOT=%BuildRoot%\Library\Developer\Toolchains\unknown-Asserts-development.xctoolchain ^
939937
-p:TOOLCHAIN_ROOT=%BuildRoot%\Library\Developer\Toolchains\unknown-Asserts-development.xctoolchain
940938
:: TODO(compnerd) actually perform the code-signing
@@ -944,9 +942,7 @@ msbuild %SourceRoot%\swift-installer-scripts\platforms\Windows\bld\bld.wixproj ^
944942
msbuild %SourceRoot%\swift-installer-scripts\platforms\Windows\cli\cli.wixproj ^
945943
-restore ^
946944
-p:Configuration=Release ^
947-
-p:IntermediateOutputPath=%PackageRoot%\cli\ ^
948-
-p:OutputPath=%PackageRoot%\cli\ ^
949-
-p:RunWixToolsOutOfProc=true ^
945+
-p:BaseOutputPath=%PackageRoot%\cli\ ^
950946
-p:DEVTOOLS_ROOT=%BuildRoot%\Library\Developer\Toolchains\unknown-Asserts-development.xctoolchain ^
951947
-p:TOOLCHAIN_ROOT=%BuildRoot%\Library\Developer\Toolchains\unknown-Asserts-development.xctoolchain
952948
:: TODO(compnerd) actually perform the code-signing
@@ -956,9 +952,7 @@ msbuild %SourceRoot%\swift-installer-scripts\platforms\Windows\cli\cli.wixproj ^
956952
msbuild %SourceRoot%\swift-installer-scripts\platforms\Windows\dbg\dbg.wixproj ^
957953
-restore ^
958954
-p:Configuration=Release ^
959-
-p:IntermediateOutputPath=%PackageRoot%\dbg\ ^
960-
-p:OutputPath=%PackageRoot%\dbg\ ^
961-
-p:RunWixToolsOutOfProc=true ^
955+
-p:BaseOutputPath=%PackageRoot%\dbg\ ^
962956
-p:DEVTOOLS_ROOT=%BuildRoot%\Library\Developer\Toolchains\unknown-Asserts-development.xctoolchain ^
963957
-p:TOOLCHAIN_ROOT=%BuildRoot%\Library\Developer\Toolchains\unknown-Asserts-development.xctoolchain
964958
:: TODO(compnerd) actually perform the code-signing
@@ -968,9 +962,7 @@ msbuild %SourceRoot%\swift-installer-scripts\platforms\Windows\dbg\dbg.wixproj ^
968962
msbuild %SourceRoot%\swift-installer-scripts\platforms\Windows\ide\ide.wixproj ^
969963
-restore ^
970964
-p:Configuration=Release ^
971-
-p:IntermediateOutputPath=%PackageRoot%\ide\ ^
972-
-p:OutputPath=%PackageRoot%\ide\ ^
973-
-p:RunWixToolsOutOfProc=true ^
965+
-p:BaseOutputPath=%PackageRoot%\ide\ ^
974966
-p:DEVTOOLS_ROOT=%BuildRoot%\Library\Developer\Toolchains\unknown-Asserts-development.xctoolchain ^
975967
-p:TOOLCHAIN_ROOT=%BuildRoot%\Library\Developer\Toolchains\unknown-Asserts-development.xctoolchain
976968
:: TODO(compnerd) actually perform the code-signing
@@ -980,40 +972,34 @@ msbuild %SourceRoot%\swift-installer-scripts\platforms\Windows\ide\ide.wixproj ^
980972
msbuild %SourceRoot%\swift-installer-scripts\platforms\Windows\sdk\sdk.wixproj ^
981973
-restore ^
982974
-p:Configuration=Release ^
983-
-p:IntermediateOutputPath=%PackageRoot%\sdk\ ^
984-
-p:OutputPath=%PackageRoot%\sdk\ ^
985-
-p:RunWixToolsOutOfProc=true ^
975+
-p:BaseOutputPath=%PackageRoot%\sdk\ ^
986976
-p:PLATFORM_ROOT=%PlatformRoot%\ ^
987977
-p:SDK_ROOT=%SDKInstallRoot%\
988978
:: TODO(compnerd) actually perform the code-signing
989979
:: signtool sign /f Apple_CodeSign.pfx /p Apple_CodeSign_Password /tr http://timestamp.digicert.com /fd sha256 %PackageRoot%\sdk\sdk.msi
990980

991981
:: Package runtime.msi
992-
msbuild %SourceRoot%\swift-installer-scripts\platforms\Windows\runtime\runtime.wixproj ^
982+
msbuild %SourceRoot%\swift-installer-scripts\platforms\Windows\runtimemsi\runtimemsi.wixproj ^
993983
-restore ^
994984
-p:Configuration=Release ^
995-
-p:IntermediateOutputPath=%PackageRoot%\runtime\ ^
996-
-p:OutputPath=%PackageRoot%\runtime\ ^
997-
-p:RunWixToolsOutOfProc=true ^
985+
-p:BaseOutputPath=%PackageRoot%\runtime\ ^
998986
-p:SDK_ROOT=%SDKInstallRoot%\
999987
:: TODO(compnerd) actually perform the code-signing
1000988
:: signtool sign /f Apple_CodeSign.pfx /p Apple_CodeSign_Password /tr http://timestamp.digicert.com /fd sha256 %PackageRoot%\runtime\runtime.msi
1001989

1002990
:: Collate MSIs
1003-
move %PackageRoot%\bld\bld.msi %PackageRoot% || (exit /b)
1004-
move %PackageRoot%\cli\cli.msi %PackageRoot% || (exit /b)
1005-
move %PackageRoot%\dbg\dbg.msi %PackageRoot% || (exit /b)
1006-
move %PackageRoot%\ide\ide.msi %PackageRoot% || (exit /b)
1007-
move %PackageRoot%\sdk\sdk.msi %PackageRoot% || (exit /b)
1008-
move %PackageRoot%\runtime\runtime.msi %PackageRoot% || (exit /b)
991+
move %PackageRoot%\bld\Release\amd64\bld.msi %PackageRoot% || (exit /b)
992+
move %PackageRoot%\cli\Release\amd64\cli.msi %PackageRoot% || (exit /b)
993+
move %PackageRoot%\dbg\Release\amd64\dbg.msi %PackageRoot% || (exit /b)
994+
move %PackageRoot%\ide\Release\amd64\ide.msi %PackageRoot% || (exit /b)
995+
move %PackageRoot%\sdk\Release\amd64\sdk.msi %PackageRoot% || (exit /b)
996+
move %PackageRoot%\runtime\Release\amd64\runtime.msi %PackageRoot% || (exit /b)
1009997

1010998
:: Build Installer
1011999
msbuild %SourceRoot%\swift-installer-scripts\platforms\Windows\bundle\installer.wixproj ^
10121000
-restore ^
10131001
-p:Configuration=Release ^
1014-
-p:IntermediateOutputPath=%PackageRoot%\installer\ ^
1015-
-p:OutputPath=%PackageRoot%\installer\ ^
1016-
-p:RunWixToolsOutOfProc=true ^
1002+
-p:BaseOutputPath=%PackageRoot%\installer\ ^
10171003
-p:MSI_LOCATION=%PackageRoot%\
10181004
:: TODO(compnerd) actually perform the code-signing
10191005
:: signtool sign /f Apple_CodeSign.pfx /p Apple_CodeSign_Password /tr http://timestamp.digicert.com /fd sha256 %PackageRoot%\installer\installer.exe
@@ -1035,7 +1021,7 @@ move %PackageRoot%\sdk.msi %BuildRoot%\artifacts || (exit /b)
10351021
:: runtime
10361022
move %PackageRoot%\runtime.msi %BuildRoot%\artifacts || (exit /b)
10371023
:: installer
1038-
move %PackageRoot%\installer\installer.exe %BuildRoot%\artifacts || (exit /b)
1024+
move %PackageRoot%\installer\Release\amd64\installer.exe %BuildRoot%\artifacts || (exit /b)
10391025

10401026
goto :eof
10411027
endlocal

0 commit comments

Comments
 (0)