diff --git a/qart/local.go b/qart/local.go index c9d7adc..e702c5c 100644 --- a/qart/local.go +++ b/qart/local.go @@ -18,7 +18,7 @@ import ( func main() { http.Handle("/", http.FileServer(http.Dir("."))) - http.Handle("/wasm_exec.js", http.FileServer(http.Dir(runtime.GOROOT()+"/misc/wasm/"))) + http.Handle("/wasm_exec.js", http.FileServer(http.Dir(runtime.GOROOT()+"/lib/wasm/"))) http.HandleFunc("/main.wasm", func(w http.ResponseWriter, r *http.Request) { cmd := exec.Command("go", "build", "-o", "_live.wasm") cmd.Env = append(os.Environ(), "GOOS=js", "GOARCH=wasm") diff --git a/qart/mkfile b/qart/mkfile index 5ebf073..8371c8e 100644 --- a/qart/mkfile +++ b/qart/mkfile @@ -1,4 +1,4 @@ deploy:V: GOOS=js GOARCH=wasm go build -o main.wasm - gsutil cp index.html main.wasm $GOROOT/misc/wasm/wasm_exec.js gs://swtch/www-blog/qr/draw/ + gsutil cp index.html main.wasm $GOROOT/lib/wasm/wasm_exec.js gs://swtch/www-blog/qr/draw/ rm main.wasm