summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-16 23:37:54 -0300
committerGabriel Schneider <[email protected]>2026-11-17 12:15:01 -0300
commitca602943e3fc9faad24e51497eeafb0ae7856800 (patch)
treedc35633094f5355d535587f388d6ffd3896dace1 /examples
parentc3b9938e9cb381bc7378fdca9073520ff1711ad6 (diff)
downloadsketchbook-ca602943e3fc9faad24e51497eeafb0ae7856800.tar.gz
sketchbook-ca602943e3fc9faad24e51497eeafb0ae7856800.zip
Keep a sketch's files in .sketchbook/, a shipped game's in XDG
zig build run, probe and export pass --state .sketchbook/<name>.state. The host makes that directory with a .gitignore of * (a sessions database grows, and the jj snapshot build_info takes would commit it while under a megabyte), and moves the state and store an older build kept beside it in once, with renameat2(NOREPLACE): when both exist nothing moves and the host says so. Without --state an interactive run keeps its files in $XDG_DATA_HOME/<name>/ (~/.local/share without it), not the cwd; a script or an export still uses sketch.state. test-paths checks all three cases. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'examples')
0 files changed, 0 insertions, 0 deletions