mirror of
https://github.com/HACKERALERT/Picocrypt.git
synced 2024-11-09 20:40:53 +00:00
Add guide for compiling the web interface
This commit is contained in:
parent
90ec24c941
commit
fdd03d4ce4
1 changed files with 6 additions and 0 deletions
6
web/README.md
Normal file
6
web/README.md
Normal file
|
@ -0,0 +1,6 @@
|
|||
# Compiling
|
||||
To build the web interface from source, you will need to compile the Go code into a WebAssembly file:
|
||||
```
|
||||
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).
|
Loading…
Reference in a new issue