Skip to content

Commit

Permalink
Add detail to compiling for web
Browse files Browse the repository at this point in the history
  • Loading branch information
HACKERALERT committed Jan 4, 2024
1 parent a6724ca commit 643bb97
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions web/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ To build the web interface from source, you will need to compile the Go code int
GOOS=js GOARCH=wasm go build -ldflags="-s -w" index.go
```
This will create a binary file. Compress it with [LZMA](https://github.com/LZMA-JS/LZMA-JS), encode it in Base64, and paste the final result to [L198](https://github.com/HACKERALERT/Picocrypt/blob/main/web/index.html#L198).

You'll also need to update [`wasm_exec.js`](https://cdn.jsdelivr.net/gh/golang/[email protected]/misc/wasm/wasm_exec.min.js) (replace the Go version accordingly) on [L197](https://github.com/HACKERALERT/Picocrypt/blob/main/web/index.html#L197) to glue everything together.

0 comments on commit 643bb97

Please sign in to comment.