Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/cs/production/Assetyard/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ assetyard cook # cook every asset once, for example before dotnet publish
assetyard watch # cook every asset, then each one again when you save it, until Ctrl+C
```

Put the files you edit in `Assets/Raw/`, next to your game's `.csproj`. They're cooked into `Assets/Cooked/`, with the same folders and file names. Commit `Assets/Raw`, and add `Assets/Cooked/` to `.gitignore`. Run it from the repository's root or the project's folder: it cooks every `Assets/Raw` it finds.
Put the files you edit in `Assets/Raw/`, next to your game's `.csproj`. They're cooked into `Assets/Cooked/`, with the same folders and file names. Commit `Assets/Raw`, and add `**/Assets/Cooked/` to `.gitignore` (with `**/`, so it matches in a project's folder, not only at the repository's root). Run it from the repository's root or the project's folder: it cooks every `Assets/Raw` it finds.

## Shaders

Expand Down
5 changes: 3 additions & 2 deletions src/cs/production/Templates/shared/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@
*.user
.DS_Store

# Assets that Assetyard cooks from Assets/Raw (`dotnet assetyard cook`)
Assets/Cooked/
# Assets that Assetyard cooks from Assets/Raw (`dotnet assetyard cook`), in any project's folder. `**/` is needed: a pattern with a
# slash in it, such as Assets/Cooked/, only matches at the repository's root
**/Assets/Cooked/
3 changes: 3 additions & 0 deletions src/cs/tests/Consumers/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,9 @@ mkdir -p "$work/TestGame/src/cs/TestGame/Assets/Raw/Text"
echo "Hello from a raw asset." > "$work/TestGame/src/cs/TestGame/Assets/Raw/Text/raw.txt"
(cd "$work/TestGame" && export DOTNET_CLI_HOME="$work/cli-home" && dotnet tool restore && dotnet assetyard cook)
[[ -f "$work/TestGame/src/cs/TestGame/Assets/Cooked/Text/raw.txt" ]] || { echo "The bl-game template's Assetyard didn't cook Assets/Raw" >&2; exit 1; }
# The template's .gitignore keeps cooked assets out of Git, in the project's folder too, not only at the repository's root
(cd "$work/TestGame" && git init -q && git check-ignore -q src/cs/TestGame/Assets/Cooked/Text/raw.txt) ||
{ echo "The bl-game template's .gitignore doesn't ignore src/cs/TestGame/Assets/Cooked/" >&2; exit 1; }

# The game template publishes and runs. Its game runs until its window is closed, so check that it's still running after a few
# seconds (it opened its window and is drawing frames), then stop it
Expand Down