From fdd03d4ce4fef9762adc7dec6fa8e5adfdabd48f Mon Sep 17 00:00:00 2001 From: Evan Su <48808396+HACKERALERT@users.noreply.github.com> Date: Sat, 5 Aug 2023 23:08:06 -0400 Subject: [PATCH] Add guide for compiling the web interface --- web/README.md | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 web/README.md diff --git a/web/README.md b/web/README.md new file mode 100644 index 0000000..9b5f091 --- /dev/null +++ b/web/README.md @@ -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).