mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-13 14:30:02 -04:00
fix pwsh build script
This commit is contained in:
parent
fafeef060a
commit
76035db4e9
1 changed files with 3 additions and 3 deletions
|
@ -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!"
|
Loading…
Add table
Add a link
Reference in a new issue