From 8af017d898f706931ba4c22fdf38c04e29fadf3b Mon Sep 17 00:00:00 2001 From: Helio Machado <0x2b3bfa0+git@googlemail.com> Date: Fri, 10 Oct 2025 15:41:40 +0200 Subject: [PATCH 1/2] qart: update path to wasm_exec.js --- qart/local.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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") From 4138233b8b20e5c47ec039ac13cea5dca0c3ed62 Mon Sep 17 00:00:00 2001 From: Helio Machado <0x2b3bfa0+git@googlemail.com> Date: Sun, 12 Oct 2025 12:11:20 +0200 Subject: [PATCH 2/2] Update mkfile --- qart/mkfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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