mirror of
https://github.com/Luzifer/wasm-openssl.git
synced 2025-03-14 18:17:42 +00:00
Cleanup main dir
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
7049fc4299
commit
5729d9e9cc
4 changed files with 6 additions and 7 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1,2 +1,2 @@
|
|||
main.wasm*
|
||||
openssl.wasm
|
||||
wasm_exec.js
|
||||
|
|
9
Makefile
9
Makefile
|
@ -1,11 +1,10 @@
|
|||
default: build wasm_exec.js
|
||||
default: build example/wasm_exec.js
|
||||
|
||||
build:
|
||||
GOOS=js GOARCH=wasm go build -o main.wasm main.go
|
||||
gzip -c main.wasm > main.wasm.gz
|
||||
GOOS=js GOARCH=wasm go build -o example/openssl.wasm main.go
|
||||
|
||||
wasm_exec.js:
|
||||
curl -sSfLo wasm_exec.js "https://raw.githubusercontent.com/golang/go/go1.11/misc/wasm/wasm_exec.js"
|
||||
example/wasm_exec.js:
|
||||
curl -sSfLo example/wasm_exec.js "https://raw.githubusercontent.com/golang/go/go1.11/misc/wasm/wasm_exec.js"
|
||||
|
||||
publish:
|
||||
bash golang.sh
|
||||
|
|
|
@ -14,4 +14,4 @@ function opensslLoaded() {
|
|||
}
|
||||
|
||||
const go = new Go()
|
||||
WebAssembly.instantiateStreaming(fetch("main.wasm"), go.importObject).then(async obj => await go.run(obj.instance))
|
||||
WebAssembly.instantiateStreaming(fetch("openssl.wasm"), go.importObject).then(async obj => await go.run(obj.instance))
|
Loading…
Add table
Reference in a new issue