Skip to content

Commit

Permalink
Merge pull request #675 from luehmann/fix-zig
Browse files Browse the repository at this point in the history
zig: fix cart out path
  • Loading branch information
aduros authored Dec 31, 2023
2 parents aa89b9d + d6c9689 commit 841e62e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cli/lib/new.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
}
};

Expand Down
2 changes: 1 addition & 1 deletion cli/lib/watch.js
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
2 changes: 1 addition & 1 deletion site/docs/getting-started/setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

</Page>
Expand Down
2 changes: 1 addition & 1 deletion site/docs/tutorials/snake/publish-your-game.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`

</Page>

Expand Down

0 comments on commit 841e62e

Please sign in to comment.