Commit d58ed24
committed
feat(entry-points): canonical build-mios.{sh,ps1} naming + 3-min auto-accept
Renamed the Windows build orchestrator and consolidated the user-facing
entry-point naming convention:
mios.git
mios-build-local.ps1 -> build-mios.ps1 (renamed)
mios-build-local.ps1 (now a redirector)
mios-bootstrap.git
install.sh -> build-mios.sh (renamed)
install.ps1 -> build-mios.ps1 (renamed)
install.sh (now a redirector)
install.ps1 (now a redirector)
bootstrap.sh (already a redirector; banner refreshed)
Why: 'build-mios.<platform-extension>' is the single, predictable name
across both repos and both platforms. The four old entry-point names
(mios-build-local.ps1, install.sh, install.ps1, bootstrap.sh) are kept
as one-shot redirector stubs so existing curl|bash and irm|iex
one-liners, shortcuts, and CI pipelines that point at the old URLs
keep working without any user-side change.
3-MINUTE AUTO-ACCEPT TIMEOUT (PowerShell + bash)
================================================
Read-Timed (build-mios.ps1) gains a -TimeoutSec parameter (default 180s
= 3 minutes; honors $env:MIOS_PROMPT_TIMEOUT; -le 0 means wait
forever). Previously it referenced an undefined $Timeout variable --
that's now closed. When the timer fires the resolved default is taken
silently and a '(auto-accept after Ns)' note is printed so the unattended
choice is auditable.
prompt_default (build-mios.sh) wraps 'read -r' with '-t
${MIOS_PROMPT_TIMEOUT:-180}'. On EOF or timeout, the resolved default
is taken and a one-line note is emitted to stderr so the install log
captures the unattended decision. Set MIOS_PROMPT_TIMEOUT=0 to disable
(wait forever); MIOS_PROMPT_TIMEOUT=1 in CI for fastest unattended
runs.
The defaults the timeout falls back to are the ones already resolved
from the unified mios.toml chain (vendor / host / per-user) by
tools/lib/userenv.sh -- so the 'global MiOS/mios defaults' the
3-minute clause refers to are exactly the values an operator could
have set in mios-bootstrap.git/mios.toml before kicking off the build.
DOCS / ALLOW-LISTS
==================
- AGREEMENTS.md section 4 entry-point table updated to list build-mios.*
as canonical, with the old names noted as redirectors.
- .gitignore in both repos: whitelist /build-mios.{sh,ps1}; old
whitelist lines kept so the redirector stubs stay tracked.
- Banner messages in the renamed scripts now report 'build-mios.{sh,ps1}'
rather than the old name.
The renamed-with-redirector layout means existing one-liner URLs
(.../install.ps1, .../bootstrap.sh) continue to land on functional
scripts; the old scripts immediately exec the new build-mios.<ext>
sibling (or fall back to fetching it from raw.githubusercontent.com
when the script was curl|bash-piped without an on-disk neighbor).1 parent 82a1779 commit d58ed24
4 files changed
Lines changed: 1061 additions & 1033 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| 63 | + | |
63 | 64 | | |
64 | 65 | | |
65 | 66 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
| 80 | + | |
81 | 81 | | |
82 | 82 | | |
83 | | - | |
| 83 | + | |
84 | 84 | | |
85 | | - | |
86 | | - | |
| 85 | + | |
87 | 86 | | |
88 | 87 | | |
89 | 88 | | |
| |||
0 commit comments