mirror of
https://github.com/HACKERALERT/Picocrypt.git
synced 2024-12-27 18:04:21 +00:00
Add detail to compiling for web
This commit is contained in:
parent
a6724ca4ef
commit
643bb97977
1 changed files with 2 additions and 0 deletions
2
web/README.md
vendored
2
web/README.md
vendored
|
@ -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
|
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).
|
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/go@go1.21.5/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.
|
||||||
|
|
Loading…
Reference in a new issue