Skip to content

Commit c21ca88

Browse files
committed
fix(installer): copy portable Node into place
1 parent 6ea907c commit c21ca88

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ Docs: https://docs.openclaw.ai
6262
- Plugins/discovery: strip `-plugin` package suffixes when deriving plugin id hints so package names line up with manifest ids. (#85170) Thanks @JulyanXu.
6363
- Telegram: preserve fenced code block languages through Markdown rendering so Telegram receives `language-*` code classes. (#85209) Thanks @leno23.
6464
- Windows installer: bootstrap a user-local portable Node.js when native Windows has no Node and no winget, Chocolatey, or Scoop, so first-run installs can continue on raw hosts.
65-
- Windows installer: install the downloaded portable Node.js directory atomically so PowerShell 5.1 first-run bootstraps do not fail while moving zip contents.
65+
- Windows installer: copy the downloaded portable Node.js directory into place so PowerShell 5.1 first-run bootstraps do not fail while moving zip contents.
6666
- fix(integrations): enforce channel read target allowlists [AI]. (#84982) Thanks @pgondhi987.
6767
- Agents/heartbeat: route single-owner `session.dmScope=main` direct-message exec and cron event wakes back to the agent main session so async completions no longer strand context in orphan direct-DM queues. Fixes #71581. (#83743) Thanks @Kaspre.
6868
- Agents/code-mode: expose outer code-mode `exec` source through the `command` hook alias with `toolKind`/`toolInputKind` discriminators so exec-shaped policies can distinguish code-mode cells. (#83483) Thanks @Kaspre.

scripts/install.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ function Install-PortableNode {
222222
throw "Node.js archive did not contain node.exe."
223223
}
224224

225-
Move-Item -LiteralPath $nodeDir.FullName -Destination $portableRoot -Force
225+
Copy-Item -LiteralPath $nodeDir.FullName -Destination $portableRoot -Recurse -Force
226226
} finally {
227227
if (Test-Path $tmpZip) {
228228
Remove-Item -Force $tmpZip

test/scripts/install-ps1.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ describe("install.ps1 failure handling", () => {
129129
expect(portableNodeBody).toContain("portable-node");
130130
expect(portableNodeBody).toContain("Ensure-PortableNodeOnUserPath");
131131
expect(portableNodeBody).toContain(
132-
"Move-Item -LiteralPath $nodeDir.FullName -Destination $portableRoot -Force",
132+
"Copy-Item -LiteralPath $nodeDir.FullName -Destination $portableRoot -Recurse -Force",
133133
);
134134
expect(portableNodeBody).not.toContain('Join-Path $nodeDir.FullName "*"');
135135
expect(portableNodePathBody).toContain("Add-ToUserPath $nodeDir");

0 commit comments

Comments
 (0)