From 76035db4e9440b896d2904c7267dea897782439a Mon Sep 17 00:00:00 2001 From: Avad3 <65318266+Avad3@users.noreply.github.com> Date: Wed, 17 Jul 2024 11:38:48 -0400 Subject: [PATCH] fix pwsh build script --- rewriter/build.ps1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rewriter/build.ps1 b/rewriter/build.ps1 index 7a55402..807d5a7 100644 --- a/rewriter/build.ps1 +++ b/rewriter/build.ps1 @@ -8,7 +8,7 @@ $WASM = "rewriter/out/rewriter_bg.wasm" Measure-Command -Expression { wasm-opt -Oz --vacuum --dce --enable-threads --enable-bulk-memory --enable-simd "$WASM" -o rewriter/out/optimized.wasm } -Write-Output -n "self.WASM = '" > static/wasm.js -[System.Convert]::ToBase64String([System.IO.File]::ReadAllBytes("rewriter/out/optimized.wasm")) >> static/wasm.js -Write-Output -n "';" >> static/wasm.js +Write-Output "self.WASM = '" | Out-File -NoNewline -FilePath static/wasm.js +[System.Convert]::ToBase64String([System.IO.File]::ReadAllBytes("rewriter/out/optimized.wasm")) | Out-File -Append -NoNewline -FilePath static/wasm.js +Write-Output "';" | Out-File -Append -NoNewline -FilePath static/wasm.js Write-Output "Rewriter Build Complete!" \ No newline at end of file