From db70a0d92d9ad3786ee5837a1ab59afd5e36a65f Mon Sep 17 00:00:00 2001 From: Hsiao-nan Cheung Date: Tue, 9 Apr 2024 01:50:48 +0800 Subject: [PATCH] swift-nightly: Fix install script --- bucket/swift-nightly.json | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/bucket/swift-nightly.json b/bucket/swift-nightly.json index edf8fceb43f..ec49fcf7e44 100644 --- a/bucket/swift-nightly.json +++ b/bucket/swift-nightly.json @@ -24,9 +24,6 @@ "pre_install": [ "Expand-DarkArchive \"$dir\\swiftsetup.exe\" \"$dir\\extract_folder\" -Removal", "$xml = [xml](Get-Content -Raw \"$dir\\extract_folder\\UX\\manifest.xml\" -Encoding utf8)", - "$xml.BurnManifest.Payload | ForEach-Object {", - " Move-Item -Path \"$dir\\extract_folder\\AttachedContainer\\$($_.SourcePath)\" -Destination \"$dir\\extract_folder\\AttachedContainer\\$($_.FilePath)\"", - "}", "$xml.BurnManifest.Payload | Where-Object { $_.FilePath.EndsWith(\".msi\") } | ForEach-Object {", " if ($($_.FilePath) -eq \"rtl.msi\") {", " Expand-MsiArchive \"$dir\\extract_folder\\AttachedContainer\\$($_.FilePath)\" \"$dir\\extract_folder\\LocalApp\\Programs\\Swift\\Runtimes\\usr\\bin\"", @@ -42,9 +39,8 @@ "Remove-Item \"$dir\\Swift\\Platforms\\$ver\" | Out-Null", "Remove-Item \"$dir\\Swift\\Toolchains\\$ver+Asserts\" | Out-Null", "# Remove-Item \"$dir\\Swift\\Tools\\$ver\" | Out-Null", - "Remove-Item \"$dir\\extract_folder\" -Recurse | Out-Null", "Move-Item -Path \"$dir\\Swift\\*\" -Destination \"$dir\"", - "Remove-Item \"$dir\\Swift\" | Out-Null" + "Remove-Item \"$dir\\Swift\", \"$dir\\extract_folder\" -Recurse | Out-Null" ], "env_add_path": [ "Runtimes\\usr\\bin",