mirror of
https://github.com/fluencelabs/aquavm
synced 2025-03-16 04:50:49 +00:00
12 lines
332 B
PowerShell
12 lines
332 B
PowerShell
|
|
||
|
New-Item -ItemType Directory -Force -Path ./wasm
|
||
|
wasm-pack build ../interpreter --no-typescript --release -d ../npm/wasm
|
||
|
|
||
|
$base64string = [Convert]::ToBase64String([IO.File]::ReadAllBytes('./npm/wasm/aquamarine_client_bg.wasm'))
|
||
|
|
||
|
$data = "// auto-generated
|
||
|
|
||
|
module.exports = `"${base64string}`""
|
||
|
|
||
|
$data | Out-File "./src/wasm.js"
|