1
0
mirror of https://github.com/Luzifer/wasm-openssl.git synced 2024-09-16 14:38:28 +00:00

Cleanup main dir

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2018-09-18 18:42:46 +02:00
parent 7049fc4299
commit 5729d9e9cc
Signed by: luzifer
GPG Key ID: DC2729FDD34BE99E
4 changed files with 6 additions and 7 deletions

2
.gitignore vendored
View File

@ -1,2 +1,2 @@
main.wasm*
openssl.wasm
wasm_exec.js

View File

@ -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

View File

@ -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))