From fccbc77d2f8c32462a35488751657c8339c88508 Mon Sep 17 00:00:00 2001 From: Pavel Savara Date: Tue, 23 Jul 2024 19:49:57 +0200 Subject: [PATCH] [WASI] SDK provisioning (#105321) --- src/mono/mono.proj | 2 +- src/mono/wasi/provision.ps1 | 9 ++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/mono/mono.proj b/src/mono/mono.proj index de2859eef88f4..dbe6f6a5229b4 100644 --- a/src/mono/mono.proj +++ b/src/mono/mono.proj @@ -329,7 +329,7 @@ JS_ENGINES = [NODE_JS] [bug](https://github.com/bytecodealliance/wasm-component-ld/issues/22) which has been fixed in a v0.5.3 of that utility, so we upgrade it here. --> - diff --git a/src/mono/wasi/provision.ps1 b/src/mono/wasi/provision.ps1 index 1f8286ed876a9..4e2d419eea716 100644 --- a/src/mono/wasi/provision.ps1 +++ b/src/mono/wasi/provision.ps1 @@ -11,6 +11,7 @@ param( Set-StrictMode -version 2.0 $ErrorActionPreference='Stop' +$ProgressPreference = 'SilentlyContinue' New-Item -Path $WasiSdkPath -ItemType "directory" Invoke-WebRequest -Uri $WasiSdkUrl -OutFile ./wasi-sdk-$WasiSdkVersion.0-mingw.tar.gz @@ -23,6 +24,8 @@ Remove-Item ./wasi-sdk-$WasiSdkVersion.0-mingw.tar.gz -fo # ships with WASI-SDK 22 contains a # [bug](https://github.com/bytecodealliance/wasm-component-ld/issues/22) which # has been fixed in a v0.5.3 of that utility, so we upgrade it here. -Invoke-WebRequest -Uri https://github.com/bytecodealliance/wasm-component-ld/releases/download/v0.5.3/wasm-component-ld-v0.5.3-x86_64-windows.zip -OutFile wasm-component-ld-v0.5.3-x86_64-windows.zip -Expand-Archive -LiteralPath wasm-component-ld-v0.5.3-x86_64-windows.zip -DestinationPath . -Copy-Item wasm-component-ld-v0.5.3-x86_64-windows/wasm-component-ld.exe $WasiSdkPath/bin \ No newline at end of file +Invoke-WebRequest -Uri https://github.com/bytecodealliance/wasm-component-ld/releases/download/v0.5.5/wasm-component-ld-v0.5.5-x86_64-windows.zip -OutFile wasm-component-ld-v0.5.5-x86_64-windows.zip +Expand-Archive -LiteralPath wasm-component-ld-v0.5.5-x86_64-windows.zip -DestinationPath . +Copy-Item wasm-component-ld-v0.5.5-x86_64-windows/wasm-component-ld.exe $WasiSdkPath/bin +Remove-Item ./wasm-component-ld-v0.5.5-x86_64-windows.zip -fo +Remove-Item ./wasm-component-ld-v0.5.5-x86_64-windows -Recurse -fo \ No newline at end of file