Commit graph

59 commits

Author SHA1 Message Date
yiliang114
728b35fd41 fix(installer): align npm fallback node gate with engines 2026-05-11 20:43:33 +08:00
yiliang114
f6696e8d73 feat(installer): fold hosted release checks into installer flow 2026-05-11 18:58:16 +08:00
yiliang114
1f1f5cd5f5 fix(installer): stabilize Windows managed install checks 2026-05-11 16:18:15 +08:00
yiliang114
1502f72852 fix(installer): repair Windows installer tests 2026-05-11 15:55:57 +08:00
yiliang114
1917316b12 fix(installer): address standalone review follow-ups 2026-05-11 13:50:33 +08:00
yiliang114
2e4086aa4a fix(installer): tighten hosted default-version check, flag legacy URL
- Replace the loose `latest` fragment check with per-format regex patterns
  in HOSTED_INSTALLER_DEFAULT_VERSION_PATTERNS so an unrelated occurrence
  of `latest` (comment, help text) cannot satisfy the staging guard. The
  patterns still tolerate whitespace variation, only the default-version
  assignment itself must be intact.
- Add a "Hosted endpoint status" callout in INSTALLATION_GUIDE.md before
  the curl examples. The documented `--version` flow does not work against
  the OSS URL today because it currently serves the legacy NVM-based
  installer; the callout points users at a local checkout until the next
  release sync.
- Tests: drop `latest` from the fragments equality assertion, add positive
  and negative regex coverage, add a failure-path case for sources whose
  default version is not `latest`, and pin the new guide markers so the
  callout cannot silently disappear.
2026-05-07 19:03:22 +08:00
yiliang114
51778f9fb8 fix(installer): refine hosted asset staging 2026-05-07 17:47:53 +08:00
yiliang114
587dc1f2c6 feat(installer): stage hosted installation assets 2026-05-07 16:54:43 +08:00
yiliang114
f9d9a3b6be fix(installer): keep installer entrypoint hosted 2026-05-07 16:33:32 +08:00
yiliang114
44ac2297cf fix(installer): address release asset review findings 2026-05-07 15:57:54 +08:00
yiliang114
51c14f419f fix(installer): unblock Windows CI for standalone install path
Three CI failures and a few review followups in one pass.

- ensureMinimalDist places its dist/ backup beside dist/ instead of
  under os.tmpdir(). On Windows GitHub runners the workspace lives on
  D: while os.tmpdir() is on C:, so renameSync raised EXDEV for every
  test that needed to swap dist/ in.
- create-standalone-package.js and the matching test fixture build
  win-x64 zips with [IO.Compression.ZipFile]::CreateFromDirectory.
  Compress-Archive emits backslash entry names that the .bat
  installer's path-traversal guard then rejected, so every freshly
  built archive failed the standalone install path on Windows.
- :ValidateArchiveContents normalizes entry separators to '/' before
  checking for '..', absolute paths, and drive prefixes - archives
  from any Windows zip tool still install while real traversal
  entries remain rejected.
- createWindowsTraversalStandaloneArchive runs PowerShell via -File
  instead of a single -Command line; the joined-with-'; ' form had a
  function definition the runner's PowerShell refused to parse.

Drive-by review followups:

- replaceRequired uses replaceAll so a future duplicate placeholder
  cannot silently keep the trailing copy as 'latest'.
- :ValidateOptions runs the unsafe-character check on SOURCE
  alongside the other variables.
- build-installation-assets.js drops a dead INSTALLATION_ASSETS
  re-export; consumers already import from release-asset-config.js.
- .gitignore covers the new sibling .qwen-dist-backup-* directory.
2026-05-07 11:54:30 +08:00
yiliang114
3570f93af9 fix(installer): address release asset review followups
- sh: reject CR/LF in archive entry names before the literal `..` glob so
  a `..\r` entry cannot bypass path validation.
- bat: prefer Tls12+Tls13 in PowerShell helpers, fall back to Tls12 alone
  on older .NET Framework where the Tls13 enum is missing.
- bat: document the implicit `:ValidateOptions` dependency next to the
  qwen.cmd wrapper writer so loosening the validator stays a conscious
  choice.
- build-standalone-release: surface the `xz-utils` host requirement for
  Linux Node downloads in `--help`.
- release-script-utils: support `--key=value` form in `parseCliArgs`.
- tests: cover the new CRLF message, TLS string, and `--key=value` parsing;
  register process-level signal/exit handlers in `ensureMinimalDist` so a
  crashed test still restores `dist/`.
2026-05-06 21:19:19 +08:00
yiliang114
6c80ef8330 fix(installer): address release asset review followups 2026-05-05 23:08:09 +08:00
yiliang114
a205e6ccdc feat(installer): add hosted install release alias 2026-05-05 20:15:01 +08:00
yiliang114
b078ade587 fix(installer): avoid prerelease installer asset links 2026-05-05 19:34:46 +08:00
yiliang114
ec654dd87c feat(installer): publish release installer assets 2026-05-04 21:34:33 +08:00
yiliang114
fee51d1d91 fix(installer): harden standalone review fixes 2026-05-04 17:38:07 +08:00
yiliang114
e7e3f9077d fix(installer): simplify Windows option validation 2026-05-04 16:56:02 +08:00
yiliang114
0eb58a81a2 fix(installer): avoid Windows validation parse errors 2026-05-04 16:27:47 +08:00
yiliang114
1ca86fe8e7 fix(installer): address standalone review hardening 2026-05-04 16:03:34 +08:00
yiliang114
faa9087f2d fix(installer): use robust Windows checksum hashing 2026-05-03 01:14:19 +08:00
yiliang114
2b40bad5df chore(installer): simplify standalone release review fixes 2026-05-02 23:27:25 +08:00
yiliang114
472e51eb19 fix(installer): stabilize standalone script checks 2026-05-02 22:52:44 +08:00
yiliang114
571959532b chore(installer): clarify review followups 2026-05-02 21:11:50 +08:00
yiliang114
d7277a6976 fix(installer): address standalone review findings 2026-05-02 21:07:14 +08:00
yiliang114
d2e5b1bd07 fix(installer): harden standalone archive installs 2026-05-02 20:20:56 +08:00
yiliang114
eb2a9a8bef feat(installer): add standalone archive installation 2026-04-30 22:04:01 +08:00
DennisYu07
8133c968ed start qwen after installation 2026-03-11 04:01:22 -07:00
DennisYu07
6f1e0bf18c add tips and fix issues in script 2026-03-05 04:11:59 -08:00
DennisYu07
3706f37742 add tip for installation scripts 2026-03-03 06:22:01 -08:00
DennisYu07
45530e2e41 add bash for debain 2026-02-23 20:03:03 -08:00
DennisYu07
ce3fc8f462 refactor installation script 2026-02-23 19:29:55 -08:00
DennisYu07
d0acea2185 fix warning 2026-02-19 01:47:36 -08:00
DennisYu07
bae1ba2d5d fix warning for shell script 2026-02-19 01:33:55 -08:00
DennisYu07
9ac8d9cfb1 fix issues for debian 2026-02-19 01:16:18 -08:00
DennisYu07
db56ba22cd fix chmod error for arch system and add curl and sudo check for shell script 2026-02-18 23:52:37 -08:00
DennisYu07
6cd07a5f8c fix warning in shell script 2026-02-12 00:01:24 -08:00
DennisYu07
23294b88a2 fix issue in script 2026-02-11 23:43:59 -08:00
DennisYu07
be37ba0fda change staff group for cross platform 2026-02-11 23:26:41 -08:00
DennisYu07
66e3cdfb71 fix warning 2026-02-11 23:08:00 -08:00
DennisYu07
1c38840490 fix installation user permission issue 2026-02-11 23:03:09 -08:00
DennisYu07
8355c96cf1 fix installation script 2026-02-11 05:23:55 -08:00
DennisYu07
dd1500d063 fix warning in shell script 2026-02-09 00:24:30 -08:00
DennisYu07
7487ba93ab refactor shell for mac/linux 2026-02-06 00:56:09 -08:00
DennisYu07
678adecfec add source for shell 2026-02-05 23:41:52 -08:00
DennisYu07
b487768fa6 remove useless command for bash script 2026-02-05 21:30:26 -08:00
DennisYu07
afdb1bb064 resolve comment for shell and basj 2026-02-05 21:14:57 -08:00
DennisYu07
a2b86e0cf7 resolve permission problem 2026-02-05 03:36:19 -08:00
DennisYu07
a9e25b1f49 move nvm shell to oss 2026-02-05 02:57:54 -08:00
DennisYu07
b3bddfa677 Merge branch 'feat/add-source-in-download-url' of https://github.com/QwenLM/qwen-code into feat/add-source-in-download-url 2026-02-05 01:48:55 -08:00