A Civilization-style strategy game about governing Israel from 15 May 1948. Real ministers, real map, every fact sourced. Unity + deterministic C# sim.
Security sweep lows: dev servers bind to 127.0.0.1 in the docs (pypdf bump deferred, see body) (#1250)
Eyal Golane81f4bd75e8c
diff --git a/BUILDING.md b/BUILDING.mdindex 92e83916f..3aa9d7d9e 100644--- a/BUILDING.md+++ b/BUILDING.md@@ -20,7 +20,7 @@ uv run tools/build_sim_for_unity.py # the sim DLLs Unity loads (buiexport UNITY="/Applications/Unity/Hub/Editor/6000.3.25f1/Unity.app/Contents/MacOS/Unity" # macOS path# Windows: "C:\Program Files\Unity\Hub\Editor\6000.3.25f1\Editor\Unity.exe"; Linux: ~/Unity/Hub/Editor/6000.3.25f1/Editor/Unity"$UNITY" -batchmode -CI false -GITHUB_ACTIONS false -TF_BUILD false -quit -projectPath unity -buildTarget WebGL -executeMethod Statecraft.Game.EditorTools.Build.Web -compression disabled -logFile "$PWD/unity-build-web.log"-python3 -m http.server 8000 --directory unity/Builds/Web-disabled # then open http://localhost:8000/+python3 -m http.server 8000 --bind 127.0.0.1 --directory unity/Builds/Web-disabled # then open http://localhost:8000/```Desktop players (macOS IL2CPP; Linux and Windows on Mono, built from the Mac) and their build record come fromdiff --git a/README.md b/README.mdindex 2a58c2ae4..b11f86497 100644--- a/README.md+++ b/README.md@@ -128,7 +128,7 @@ Play it in your browser on [itch.io](https://eyalgolan.itch.io/statecraft-israel1. Install the tools in [docs/dev-setup.md](docs/dev-setup.md): .NET 10, Unity 6000.3.25f1 with Web Build Support, and `uv`.2. Run `uv run tools/build_sim_for_unity.py`.3. Build the web version. The command is in [docs/dev-setup.md](docs/dev-setup.md).-4. Run `python3 -m http.server 8000 --directory unity/Builds/Web-disabled`, then open http://localhost:8000/.+4. Run `python3 -m http.server 8000 --bind 127.0.0.1 --directory unity/Builds/Web-disabled`, then open http://localhost:8000/.The exact commands are in [BUILDING.md](BUILDING.md).diff --git a/docs/dev-setup.md b/docs/dev-setup.mdindex a79f08482..e1b01db37 100644--- a/docs/dev-setup.md+++ b/docs/dev-setup.md@@ -79,5 +79,5 @@ Not possible without Unity and not in CI: the Unity EditMode tests, player buildforward). Never script, `open -a` or AppleScript the Unity editor itself.- A player build rewrites some URP asset and player-setting fields as build-time caches; drop them afterwards with`git checkout -- unity/Assets/Settings unity/ProjectSettings/ProjectSettings.asset`.-- Play a build locally: `python3 -m http.server 8000 --directory unity/Builds/Web-disabled`, then open http://localhost:8000/.+- Play a build locally: `python3 -m http.server 8000 --bind 127.0.0.1 --directory unity/Builds/Web-disabled`, then open http://localhost:8000/.A gzip or Brotli build needs `Content-Encoding`; serve it with web_check's handler (command in `docs/m3-release.md`).diff --git a/docs/m3-release.md b/docs/m3-release.mdindex 347b6867b..bccb2806e 100644--- a/docs/m3-release.md+++ b/docs/m3-release.md@@ -62,7 +62,7 @@ start of M4, as a private Draft (owner ruling, 2026-10-10); their sections below```uv run --python 3.12 python -c "import sys,functools,http.server; sys.path.insert(0,'tools'); import web_check as w; http.server.ThreadingHTTPServer(('127.0.0.1',8000), functools.partial(w.Handler, directory='unity/Builds/Web-gzip')).serve_forever()"```- The uncompressed build also works with `python3 -m http.server 8000 --directory unity/Builds/Web-disabled`.+ The uncompressed build also works with `python3 -m http.server 8000 --bind 127.0.0.1 --directory unity/Builds/Web-disabled`.- **Console lines a browser check can rely on:**- `GAME OK <date> turn <n> hash <state hash>` at start (a new game, or the autosave continued).- `TURN <n> <date> hash <state hash>` after every End Turn.diff --git a/site/src/content/en/play.md b/site/src/content/en/play.mdindex 855c65c00..46521a52c 100644--- a/site/src/content/en/play.md+++ b/site/src/content/en/play.md@@ -5,7 +5,7 @@ There is no hosted build yet. For now the game runs from source on your own mach1. Install the tools in [docs/dev-setup.md](https://github.com/eyalgolan/statecraft-israel/blob/main/docs/dev-setup.md): .NET 10, Unity 6000.3.25f1 with Web Build Support, and `uv`.2. Run `tools/build_sim_for_unity.sh`.3. Build the web version. The command is in [docs/dev-setup.md](https://github.com/eyalgolan/statecraft-israel/blob/main/docs/dev-setup.md).-4. Run `python3 -m http.server 8000 --directory unity/Builds/Web-disabled`, then open http://localhost:8000/.+4. Run `python3 -m http.server 8000 --bind 127.0.0.1 --directory unity/Builds/Web-disabled`, then open http://localhost:8000/.The exact commands, the tests and the browser check are in [BUILDING.md](https://github.com/eyalgolan/statecraft-israel/blob/main/BUILDING.md).diff --git a/site/src/content/he/play.md b/site/src/content/he/play.mdindex 3bb8bd509..8478809e0 100644--- a/site/src/content/he/play.md+++ b/site/src/content/he/play.md@@ -5,7 +5,7 @@1. התקינו את הכלים שב־[<span dir="ltr">docs/dev-setup.md</span>](https://github.com/eyalgolan/statecraft-israel/blob/main/docs/dev-setup.md) (באנגלית): <span dir="ltr">.NET 10</span>, <span dir="ltr">Unity 6000.3.25f1</span> עם Web Build Support, ו־<span dir="ltr">`uv`</span>.2. הריצו את <span dir="ltr">`tools/build_sim_for_unity.sh`</span>.3. בנו את גרסת הדפדפן. הפקודה נמצאת ב־[<span dir="ltr">docs/dev-setup.md</span>](https://github.com/eyalgolan/statecraft-israel/blob/main/docs/dev-setup.md).-4. הריצו <span dir="ltr">`python3 -m http.server 8000 --directory unity/Builds/Web-disabled`</span>, ופתחו את <span dir="ltr">http://localhost:8000/</span>.+4. הריצו <span dir="ltr">`python3 -m http.server 8000 --bind 127.0.0.1 --directory unity/Builds/Web-disabled`</span>, ופתחו את <span dir="ltr">http://localhost:8000/</span>.הפקודות המדויקות, הבדיקות ובדיקת הדפדפן נמצאות ב־[<span dir="ltr">BUILDING.md</span>](https://github.com/eyalgolan/statecraft-israel/blob/main/BUILDING.md) (באנגלית).