Skip to content

Commit 415836e

Browse files
committed
build: adjust the paths for the runtime MSI packaging rules
This is the build rules update to match swiftlang/swift-installer-scripts#224.
1 parent 9e21bd5 commit 415836e

File tree

1 file changed

+21
-80
lines changed

1 file changed

+21
-80
lines changed

utils/build-windows-toolchain.bat

Lines changed: 21 additions & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -928,100 +928,41 @@ endlocal
928928
:PackageToolchain
929929
setlocal enableextensions enabledelayedexpansion
930930

931-
:: Package bld.msi
932-
msbuild %SourceRoot%\swift-installer-scripts\platforms\Windows\bld\bld.wixproj ^
933-
-restore ^
934-
-p:Configuration=Release ^
935-
-p:BaseOutputPath=%PackageRoot%\bld\ ^
936-
-p:DEVTOOLS_ROOT=%BuildRoot%\Library\Developer\Toolchains\unknown-Asserts-development.xctoolchain ^
937-
-p:TOOLCHAIN_ROOT=%BuildRoot%\Library\Developer\Toolchains\unknown-Asserts-development.xctoolchain
938-
:: TODO(compnerd) actually perform the code-signing
939-
:: signtool sign /f Apple_CodeSign.pfx /p Apple_CodeSign_Password /tr http://timestamp.digicert.com /fd sha256 %PackageRoot%\bld\bld.msi
940-
941-
:: Package cli.msi
942-
msbuild %SourceRoot%\swift-installer-scripts\platforms\Windows\cli\cli.wixproj ^
943-
-restore ^
944-
-p:Configuration=Release ^
945-
-p:BaseOutputPath=%PackageRoot%\cli\ ^
946-
-p:DEVTOOLS_ROOT=%BuildRoot%\Library\Developer\Toolchains\unknown-Asserts-development.xctoolchain ^
947-
-p:TOOLCHAIN_ROOT=%BuildRoot%\Library\Developer\Toolchains\unknown-Asserts-development.xctoolchain
948-
:: TODO(compnerd) actually perform the code-signing
949-
:: signtool sign /f Apple_CodeSign.pfx /p Apple_CodeSign_Password /tr http://timestamp.digicert.com /fd sha256 %PackageRoot%\cli\cli.msi
950-
951-
:: Package dbg.msi
952-
msbuild %SourceRoot%\swift-installer-scripts\platforms\Windows\dbg\dbg.wixproj ^
953-
-restore ^
954-
-p:Configuration=Release ^
955-
-p:BaseOutputPath=%PackageRoot%\dbg\ ^
956-
-p:DEVTOOLS_ROOT=%BuildRoot%\Library\Developer\Toolchains\unknown-Asserts-development.xctoolchain ^
957-
-p:TOOLCHAIN_ROOT=%BuildRoot%\Library\Developer\Toolchains\unknown-Asserts-development.xctoolchain
958-
:: TODO(compnerd) actually perform the code-signing
959-
:: signtool sign /f Apple_CodeSign.pfx /p Apple_CodeSign_Password /tr http://timestamp.digicert.com /fd sha256 %PackageRoot%\dbg\dbg.msi
960-
961-
:: Package ide.msi
962-
msbuild %SourceRoot%\swift-installer-scripts\platforms\Windows\ide\ide.wixproj ^
931+
:: Package Online Installer
932+
msbuild %SourceRoot%\swift-installer-scripts\platforms\Windows\bundle\installer.wixproj ^
933+
-m ^
963934
-restore ^
935+
-p:BundleFlavor=web ^
936+
-p:BaseReleaseDownloadUrl=https://download.swift.org/development/windows ^
964937
-p:Configuration=Release ^
965-
-p:BaseOutputPath=%PackageRoot%\ide\ ^
938+
-p:BaseOutputPath=%PackageRoot%\online\ ^
966939
-p:DEVTOOLS_ROOT=%BuildRoot%\Library\Developer\Toolchains\unknown-Asserts-development.xctoolchain ^
967-
-p:TOOLCHAIN_ROOT=%BuildRoot%\Library\Developer\Toolchains\unknown-Asserts-development.xctoolchain
968-
:: TODO(compnerd) actually perform the code-signing
969-
:: signtool sign /f Apple_CodeSign.pfx /p Apple_CodeSign_Password /tr http://timestamp.digicert.com /fd sha256 %PackageRoot%\ide\ide.msi
970-
971-
:: Package sdk.msi
972-
msbuild %SourceRoot%\swift-installer-scripts\platforms\Windows\sdk\sdk.wixproj ^
973-
-restore ^
974-
-p:Configuration=Release ^
975-
-p:BaseOutputPath=%PackageRoot%\sdk\ ^
940+
-p:TOOLCHAIN_ROOT=%BuildRoot%\Library\Developer\Toolchains\unknown-Asserts-development.xctoolchain ^
976941
-p:PLATFORM_ROOT=%PlatformRoot%\ ^
977942
-p:SDK_ROOT=%SDKInstallRoot%\
978943
:: TODO(compnerd) actually perform the code-signing
979-
:: signtool sign /f Apple_CodeSign.pfx /p Apple_CodeSign_Password /tr http://timestamp.digicert.com /fd sha256 %PackageRoot%\sdk\sdk.msi
944+
:: signtool sign /f Apple_CodeSign.pfx /p Apple_CodeSign_Password /tr http://timestamp.digicert.com /fd sha256 %PackageRoot%\online\installer.exe
980945

981-
:: Package runtime.msi
982-
msbuild %SourceRoot%\swift-installer-scripts\platforms\Windows\runtimemsi\runtimemsi.wixproj ^
983-
-restore ^
984-
-p:Configuration=Release ^
985-
-p:BaseOutputPath=%PackageRoot%\runtime\ ^
986-
-p:SDK_ROOT=%SDKInstallRoot%\
987-
:: TODO(compnerd) actually perform the code-signing
988-
:: signtool sign /f Apple_CodeSign.pfx /p Apple_CodeSign_Password /tr http://timestamp.digicert.com /fd sha256 %PackageRoot%\runtime\runtime.msi
989-
990-
:: Collate MSIs
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)
997-
998-
:: Build Installer
946+
:: Package Offline Installer
999947
msbuild %SourceRoot%\swift-installer-scripts\platforms\Windows\bundle\installer.wixproj ^
948+
-m ^
1000949
-restore ^
950+
-p:BundleFlavor=offline ^
1001951
-p:Configuration=Release ^
1002-
-p:BaseOutputPath=%PackageRoot%\installer\ ^
1003-
-p:MSI_LOCATION=%PackageRoot%\
952+
-p:BaseOutputPath=%PackageRoot%\offline\ ^
953+
-p:DEVTOOLS_ROOT=%BuildRoot%\Library\Developer\Toolchains\unknown-Asserts-development.xctoolchain ^
954+
-p:TOOLCHAIN_ROOT=%BuildRoot%\Library\Developer\Toolchains\unknown-Asserts-development.xctoolchain ^
955+
-p:PLATFORM_ROOT=%PlatformRoot%\ ^
956+
-p:SDK_ROOT=%SDKInstallRoot%\
1004957
:: TODO(compnerd) actually perform the code-signing
1005958
:: signtool sign /f Apple_CodeSign.pfx /p Apple_CodeSign_Password /tr http://timestamp.digicert.com /fd sha256 %PackageRoot%\installer\installer.exe
1006959

1007960
:: Stage Artifacts
1008-
md %BuildRoot%\artifacts
1009-
1010-
:: Redistributable libraries for developers
1011-
:: bld
1012-
move %PackageRoot%\bld.msi %BuildRoot%\artifacts || (exit /b)
1013-
:: cli
1014-
move %PackageRoot%\cli.msi %BuildRoot%\artifacts || (exit /b)
1015-
:: dbg
1016-
move %PackageRoot%\dbg.msi %BuildRoot%\artifacts || (exit /b)
1017-
:: ide
1018-
move %PackageRoot%\ide.msi %BuildRoot%\artifacts || (exit /b)
1019-
:: sdk
1020-
move %PackageRoot%\sdk.msi %BuildRoot%\artifacts || (exit /b)
1021-
:: runtime
1022-
move %PackageRoot%\runtime.msi %BuildRoot%\artifacts || (exit /b)
1023-
:: installer
1024-
move %PackageRoot%\installer\Release\amd64\installer.exe %BuildRoot%\artifacts || (exit /b)
961+
md %BuildRoot%\artifacts\online
962+
md %BuildRoot%\artifacts\offline
963+
964+
move %PackageRoot%\online\Release\amd64\*.cab %PackageRoot%\online\Release\amd64\*.exe %PackageRoot%\online\Release\amd64\*.msi %BuildRoot%\artifacts\online\ || (exit /b)
965+
move %PackageRoot%\offline\Release\amd64\installer.exe %BuildRoot%\artifacts\offline || (exit /b)
1025966

1026967
goto :eof
1027968
endlocal

0 commit comments

Comments
 (0)