mirror of
https://github.com/taigrr/wasm-experiments
synced 2025-01-18 04:03:21 -08:00
Upgrade tinygo and retire tinygo-canvas
tinygo-canvas has outlive its purpose now that tinygo has improved enough to run the original version.
This commit is contained in:
12
Makefile
12
Makefile
@@ -6,7 +6,7 @@ hello: clean
|
||||
|
||||
.PHONY: tinygo
|
||||
tinygo: clean
|
||||
docker run --rm -v $$(pwd):/go/src/github.com/johanbrandhorst/wasm-experiments tinygo/tinygo:0.6.1 /bin/bash -c "\
|
||||
docker run --rm -v $$(pwd):/go/src/github.com/johanbrandhorst/wasm-experiments tinygo/tinygo:0.8.0 /bin/bash -c "\
|
||||
cd /go/src/github.com/johanbrandhorst/wasm-experiments && \
|
||||
tinygo build -o ./html/test.wasm -target wasm --no-debug ./$(target)/main.go && \
|
||||
cp /usr/local/tinygo/targets/wasm_exec.js ./html/wasm_exec.js\
|
||||
@@ -42,13 +42,13 @@ 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.7.0 /bin/bash -c "\
|
||||
docker run --rm -v $$(pwd):/go/src/github.com/johanbrandhorst/wasm-experiments tinygo/tinygo:0.8.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\
|
||||
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\
|
||||
"
|
||||
cp ./tinygo-canvas/index.html ./html/index.html
|
||||
cp ./tinygo-canvas/main.go ./html/main.go
|
||||
cp ./canvas/index.html ./html/index.html
|
||||
cp ./canvas/main.go ./html/main.go
|
||||
|
||||
.PHONY: ebiten
|
||||
ebiten: clean
|
||||
|
||||
Reference in New Issue
Block a user