Skip to content

Commit 5859a44

Browse files
committed
Update docs based on behavior of ./script/build-wasm
1 parent 664492e commit 5859a44

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,9 @@ To publish a new version of Ari:
123123

124124
Use the `./script/build-wasm` script to generate a `./cmd/wasm/goal.wasm` file from the `./cmd/wasm/main.go` entry-point.
125125

126-
You then need to locate the `wasm_exec.js` file for your specific Go version and copy that to the `./cmd/wasm` folder. Depending on your system installation, you might find it there under a `lib` or `misc` folder. If not, you can download a source tarball for your specific Go version from the Go downloads which includes this file.
126+
Run an HTTP server in the `./cmd/wasm` folder to serve up the `index.html`, which renders a gently adapted version of anaseto's WASM setup in Goal itself.
127127

128-
JavaScript that controls the user interface in `./cmd/wasm/index.html` is written in Go in the `./cmd/wasm/main.go` file.
128+
NB: The JavaScript that controls the user interface in `./cmd/wasm/index.html` is written in Go in the `./cmd/wasm/main.go` file.
129129

130130
See [Go Wiki: WebAssembly](https://go.dev/wiki/WebAssembly) for more information.
131131

0 commit comments

Comments
 (0)