qwen-code/scripts/installation
yiliang114 68f05db518 feat(installer): add hosted install-qwen.ps1 shim for irm|iex one-liner
The previous Windows quick-install one-liner used `Invoke-WebRequest -OutFile
(Join-Path $env:TEMP 'install-qwen.bat'); & (Join-Path …)`. When pasted into a
narrow terminal, line wrap could land on `-OutFile`, orphaning the parameter
from its value and producing the "missing argument for OutFile" failure
followed by a "file not found" when the second `&` ran. PowerShell's line
continuation rules cannot resolve this for parameter-name-at-EOL.

Add `install-qwen.ps1` as a thin hosted entrypoint that downloads
`install-qwen.bat` into TEMP, runs it, and cleans up. Documented one-liner
becomes the standard pattern used by bun, uv, scoop, deno, pnpm:

    powershell -ExecutionPolicy Bypass -c "irm <url>/install-qwen.ps1 | iex"

The `.bat` remains the source of truth for installer behavior; `.ps1` is just
the modern hosted entrypoint. Version pinning via `$env:QWEN_INSTALL_VERSION`
flows through unchanged. Stored with `*.ps1 -text` so CRLF survives both
GitHub raw and OSS uploads, matching the existing `.bat` handling.
2026-05-13 14:27:50 +08:00
..
install-qwen-with-source.bat fix(installer): surface download errors and add MaximumRedirection 10 2026-05-13 01:15:01 +08:00
install-qwen-with-source.ps1 feat(installer): add hosted install-qwen.ps1 shim for irm|iex one-liner 2026-05-13 14:27:50 +08:00
install-qwen-with-source.sh feat(installer): support QWEN_INSTALL_GITHUB_REPO env var for custom repo 2026-05-13 00:39:59 +08:00
INSTALLATION_GUIDE.md feat(installer): add hosted install-qwen.ps1 shim for irm|iex one-liner 2026-05-13 14:27:50 +08:00