5 Commits
Author SHA1 Message Date
fourbroad e3098f2225 ci: sync from octopus@0.15.0 v0.15.0 v0.15.1 2026-07-05 13:45:03 +08:00
fourbroadandGitea Server e79718a5fb Merge pull request 'fix(install): do not kill PowerShell host under 'irm | iex'' (#1) from workflow/bugfix/install-exit-kills-iex-host into main
Reviewed-on: http://octopus.51zxtx.com:3000/fourbroad/octopus-release/pulls/1
v0.13.0 v0.14.0
2026-07-02 09:54:18 +08:00
octopus-agent fbac1003f0 fix(install): do not kill PowerShell host under 'irm | iex'
The Windows installer used 'exit' inside Install-Octopus. When run via
'irm <url> | iex' (the documented one-liner), there is no script scope, so
'exit' terminates the entire PowerShell host process and closes the terminal
window instead of just ending the install. Most users hit this via the
'already installed' branch (exit 0).

Replace 'exit' with:
  - 'return' for the success (already-installed) path
  - 'throw' for error paths (still non-zero exit when run as .\install.ps1
    in CI; prints the error and returns to the prompt under iex)

Add tests/test.ps1 as a regression guard (source-verification + a behavioral
test proving iex no longer terminates the host).
2026-07-02 09:10:03 +08:00
fourbroad 075445250f ci: sync from octopus@0.9.0 v0.9.0 v0.9.1 v0.9.2 v0.10.0 v0.12.0 2026-06-23 08:06:46 +08:00
fourbroad 98bfa5231d Initial commit for release assets 2026-06-20 18:50:30 +08:00