unity-cli@v1.1.0
What's Changed
- unity-cli@v1.1.0 by @StephenHodgson in #15
- Process cleanup
- Replaced
TryKillProcesswith asyncKillProcessthat escalates to SIGKILL /taskkillafter a timeout. KillChildProcessesnow collects and awaits child-kill promises instead of fire-and-forget.- Call sites updated to use/await the new APIs where applicable.
- Replaced
- Log/tailing & stdout handling
- Added
TailLogFileto tail Unity log files robustly (periodic reads + final flush + EPIPE handling). Execand 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.
- Added
- Unity Editor & Hub lifecycle
UnityEditor.Run: ensures-automated/-batchmode/-logFileargs, waits for log file, tails logs while process runs.- Cancellation triggers
KillProcess+KillChildProcessesto ensure cleanup. UnityHubnow parses streamed output more safely, triggersKillProcesson completion messages.
- CLI & GitHub Actions integration
- CLI commands call
Logger.instance.setEnvironmentVariableto persistUNITY_*values for subsequent workflow steps. Loggerwrites toGITHUB_ENV/GITHUB_OUTPUTwhen available.
- CLI commands call
- CI/workflow
- Workflow split into
setup unity-cliandsetup unitysteps, added env verification steps.
- Workflow split into
- Misc
- Version bump to
1.0.14and multiple lockfile/devDependency updates. - Added small utilities:
PromptForSecretInput,Delay,TestFileAccess. - Several listener cleanup and robustness fixes (removeListener guards, safer regex parsing).
- Version bump to
- Process cleanup
Full Changelog: v1.0.13...v1.1.0