update wasmgen

This commit is contained in:
2026-07-13 00:53:44 -04:00
parent 3c494605ba
commit 261a7f2b4d
12 changed files with 22 additions and 22 deletions

View File

@@ -69,11 +69,11 @@ func document(inner string) string {
</html>`
}
// buildWasm runs the directive codegen (kjol/cmd/gowasmgen), then compiles
// buildWasm runs the directive codegen (kjol/cmd/wasmgen), then compiles
// ./wasm to wwwroot/app.wasm. Returned combined output is shown in the browser
// overlay on failure.
func buildWasm() ([]byte, error) {
if out, err := exec.Command("go", "run", "kjol/cmd/gowasmgen", "./app").CombinedOutput(); err != nil {
if out, err := exec.Command("go", "run", "kjol/cmd/wasmgen", "./app").CombinedOutput(); err != nil {
return out, err
}
cmd := exec.Command("go", "build", "-o", filepath.Join("wwwroot", "app.wasm"), "./wasm")