Commit 9a8a6ac
authored
unity-cli@v1.1.0 (#15)
- Process cleanup
- Replaced `TryKillProcess` with async `KillProcess` that escalates to SIGKILL / `taskkill` after a timeout.
- `KillChildProcesses` now collects and awaits child-kill promises instead of fire-and-forget.
- Call sites updated to use/await the new APIs where applicable.
- Log/tailing & stdout handling
- Added `TailLogFile` to tail Unity log files robustly (periodic reads + final flush + EPIPE handling).
- `Exec` and spawn wrappers now buffer incomplete lines, flush on close, and write whole lines to stdout.
- Helpers added to wait for files to be created/readable and to wait for file unlocks.
- Unity Editor & Hub lifecycle
- `UnityEditor.Run`: ensures `-automated`/`-batchmode`/`-logFile` args, waits for log file, tails logs while process runs.
- Cancellation triggers `KillProcess` + `KillChildProcesses` to ensure cleanup.
- `UnityHub` now parses streamed output more safely, triggers `KillProcess` on completion messages.
- CLI & GitHub Actions integration
- CLI commands call `Logger.instance.setEnvironmentVariable` to persist `UNITY_*` values for subsequent workflow steps.
- `Logger` writes to `GITHUB_ENV` / `GITHUB_OUTPUT` when available.
- CI/workflow
- Workflow split into `setup unity-cli` and `setup unity` steps, added env verification steps.
- Misc
- Version bump to `1.0.14` and multiple lockfile/devDependency updates.
- Added small utilities: `PromptForSecretInput`, `Delay`, `TestFileAccess`.
- Several listener cleanup and robustness fixes (removeListener guards, safer regex parsing).1 parent 7836b16 commit 9a8a6ac
12 files changed
Lines changed: 963 additions & 649 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
34 | 33 | | |
35 | 34 | | |
36 | 35 | | |
37 | 36 | | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
38 | 40 | | |
39 | 41 | | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
46 | 73 | | |
47 | | - | |
| 74 | + | |
48 | 75 | | |
49 | | - | |
50 | | - | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
51 | 81 | | |
52 | 82 | | |
53 | 83 | | |
54 | 84 | | |
55 | | - | |
56 | 85 | | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
0 commit comments