diff --git a/contents/en/documents/webassembly.html b/contents/en/documents/webassembly.html index a0c91c5..675c52f 100644 --- a/contents/en/documents/webassembly.html +++ b/contents/en/documents/webassembly.html @@ -16,9 +16,18 @@

Compiling your game

Remove-Item Env:GOARCH

Copying wasm_exec.js to execute the WebAssembly binary

On a Unix/Linux shell:

-
cp $(go env GOROOT)/misc/wasm/wasm_exec.js .
+
# Go 1.24 and newer
+cp $(go env GOROOT)/lib/wasm/wasm_exec.js .
+
+# Go 1.23 and older
+cp $(go env GOROOT)/misc/wasm/wasm_exec.js .

On Windows PowerShell:

$goroot = go env GOROOT
+
+# Go 1.24 and newer
+cp $goroot\lib\wasm\wasm_exec.js .
+
+# Go 1.23 and older
 cp $goroot\misc\wasm\wasm_exec.js .

Creating an HTML

Create this HTML:

diff --git a/contents/ja/documents/webassembly.html b/contents/ja/documents/webassembly.html index 8db3ae5..455654b 100644 --- a/contents/ja/documents/webassembly.html +++ b/contents/ja/documents/webassembly.html @@ -16,9 +16,18 @@

ゲームのコンパイル

Remove-Item Env:GOARCH

WebAssembly バイナリを実行するための wasm_exec.js のコピー

Unix/Linux シェルの場合:

-
cp $(go env GOROOT)/misc/wasm/wasm_exec.js .
+
# Go 1.24 以後
+cp $(go env GOROOT)/lib/wasm/wasm_exec.js .
+
+# Go 1.23 以前
+cp $(go env GOROOT)/misc/wasm/wasm_exec.js .

Windows PowerShell の場合:

$goroot = go env GOROOT
+
+# Go 1.24 以後
+cp $goroot\lib\wasm\wasm_exec.js .
+
+# Go 1.23 以前
 cp $goroot\misc\wasm\wasm_exec.js .

HTML の作成

次のような HTML を作成してください: