From 12f8883116b7eddd4e07e07d4313e1e24c4fedd0 Mon Sep 17 00:00:00 2001 From: Johan Brandhorst Date: Thu, 18 Jul 2019 11:36:36 +0100 Subject: [PATCH] Use TinyGo 0.7.0 for repulsion demo --- Makefile | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/Makefile b/Makefile index 189c3c6..67c6ca5 100644 --- a/Makefile +++ b/Makefile @@ -42,15 +42,11 @@ canvas: clean cp $$(go env GOROOT)/misc/wasm/wasm_exec.js ./html/wasm_exec.js tinygo-canvas: clean - #docker run --rm -v $$(pwd):/go/src/github.com/johanbrandhorst/wasm-experiments tinygo/tinygo:0.6.1 /bin/bash -c "\ - # cd /go/src/github.com/johanbrandhorst/wasm-experiments && \ - # tinygo build -o ./html/test.wasm -target wasm --no-debug ./canvas/main.go && \ - # cp /usr/local/tinygo/targets/wasm_exec.js ./html/wasm_exec.js\ - #" - # Requires tinygo with experimental GC - # https://github.com/tinygo-org/tinygo/pull/350 - tinygo build -o ./html/test.wasm -target wasm --no-debug ./tinygo-canvas/main.go - cp ~/go/src/github.com/tinygo-org/tinygo/targets/wasm_exec.js ./html/ + docker run --rm -v $$(pwd):/go/src/github.com/johanbrandhorst/wasm-experiments tinygo/tinygo:0.7.0 /bin/bash -c "\ + cd /go/src/github.com/johanbrandhorst/wasm-experiments && \ + tinygo build -o ./html/test.wasm -target wasm --no-debug ./tinygo-canvas/main.go && \ + cp /go/src/github.com/tinygo-org/tinygo/targets/wasm_exec.js ./html/wasm_exec.js\ + " cp ./tinygo-canvas/index.html ./html/index.html cp ./tinygo-canvas/main.go ./html/main.go