From d6c968973e6557e154f8fc348ae05256f8856eae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20L=C3=BChmann?= Date: Tue, 21 Nov 2023 18:18:08 +0100 Subject: [PATCH] fix zig out path changed since https://github.com/aduros/wasm4/pull/669 --- cli/lib/new.js | 2 +- cli/lib/watch.js | 2 +- site/docs/getting-started/setup.md | 2 +- site/docs/tutorials/snake/publish-your-game.md | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cli/lib/new.js b/cli/lib/new.js index 7d7ce6ad..4887684a 100644 --- a/cli/lib/new.js +++ b/cli/lib/new.js @@ -78,7 +78,7 @@ const HELP = { zig: { name: 'Zig', build: 'zig build -Doptimize=ReleaseSmall', - cart: 'zig-out/lib/cart.wasm', + cart: 'zig-out/bin/cart.wasm', } }; diff --git a/cli/lib/watch.js b/cli/lib/watch.js index 6d0da342..07dfef6c 100644 --- a/cli/lib/watch.js +++ b/cli/lib/watch.js @@ -21,7 +21,7 @@ function start (opts) { } else if (fs.existsSync("build.zig")) { buildCommand = "zig"; buildParams = ["build"]; - buildOutput = "zig-out/lib/cart.wasm"; + buildOutput = "zig-out/bin/cart.wasm"; } else if (fs.existsSync("cart.nimble")) { buildCommand = "nimble"; diff --git a/site/docs/getting-started/setup.md b/site/docs/getting-started/setup.md index 5614c44d..73a247cf 100644 --- a/site/docs/getting-started/setup.md +++ b/site/docs/getting-started/setup.md @@ -368,7 +368,7 @@ zig build -Doptimize=ReleaseSmall Run it in WASM-4 with: ```shell -w4 run zig-out/lib/cart.wasm +w4 run zig-out/bin/cart.wasm ``` diff --git a/site/docs/tutorials/snake/publish-your-game.md b/site/docs/tutorials/snake/publish-your-game.md index 595ce75d..5b45143e 100644 --- a/site/docs/tutorials/snake/publish-your-game.md +++ b/site/docs/tutorials/snake/publish-your-game.md @@ -111,7 +111,7 @@ This is a rather heavy, blunt hammer for functions that kind of look like nails zig build -Doptimize=ReleaseSmall ``` -Your game will be here: `zig-out/lib/cart.wasm` +Your game will be here: `zig-out/bin/cart.wasm`