mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 23:08:36 +00:00
install.ps1 puts terminal\current\bin on the user PATH. That folder held strata.cmd and strata.ps1; PowerShell runs the .ps1 first, and the Windows default execution policy (Restricted) refuses scripts, so a typed `strata` failed with "running scripts is disabled on this system" (Strix t27a, the owner PC's install; also in 0.2.14 / 0.2.15). strata.ps1 does the same job as strata.cmd; its only extra is exact argument passing for & | < > ^ in an argument without a space. Nothing in the product calls it. The archive now carries it as bin\strata-direct.ps1 (for scripts, run with -ExecutionPolicy Bypass -File), so `strata` can only mean strata.cmd, in every shell and under every execution policy. An install made by 0.2.15 or earlier keeps its strata.ps1 (strata update never touches the install's bin folder): the first command a new Control runs renames a stale strata.ps1 that sits beside strata.cmd in a PATH folder or in the installer's own folder to strata-direct.ps1 (Windows only, only a file with Strata's own header, every failure swallowed, one line to stderr for support). Re-running install.ps1 heals it too. Tests: terminal/tests/terminal/test_launcher_heal.py (12), test_packaging_pins, test_cyrillic_paths; smoke_terminal runs strata-direct.ps1.