惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Stack Overflow Blog
Stack Overflow Blog
云风的 BLOG
云风的 BLOG
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Recent Announcements
Recent Announcements
Microsoft Security Blog
Microsoft Security Blog
Microsoft Azure Blog
Microsoft Azure Blog
J
Java Code Geeks
D
DataBreaches.Net
U
Unit 42
P
Proofpoint News Feed
I
InfoQ
Apple Machine Learning Research
Apple Machine Learning Research
Google DeepMind News
Google DeepMind News
博客园 - Franky
博客园_首页
IT之家
IT之家
博客园 - 叶小钗
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园 - 【当耐特】
Hugging Face - Blog
Hugging Face - Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
阮一峰的网络日志
阮一峰的网络日志

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
fix(installer): detect native Windows ARM64 hosts · openc...
vincentkoc · 2026-06-23 · via Recent Commits to openclaw:main

@@ -252,6 +252,9 @@ describe("install.ps1 failure handling", () => {

252252

expect(ensureGitBody).toContain("Ensure-PortableGitOnUserPath");

253253

expect(portableGitPathBody).toContain("Add-ToUserPath $pathEntry");

254254

expect(portableGitPathBody).toContain("git-backed updates");

255+

expect(portableArchitectureBody).toContain("Win32_Processor");

256+

expect(portableArchitectureBody).toContain("Architecture -eq 12");

257+

expect(portableArchitectureBody).toContain("Win32_ComputerSystem");

255258

expect(portableArchitectureBody).toContain("PROCESSOR_ARCHITEW6432");

256259

expect(portableArchitectureBody).toContain("PROCESSOR_ARCHITECTURE");

257260

expect(portableGitDownloadBody).toContain("Get-WindowsPortableArchitecture");

@@ -301,6 +304,61 @@ describe("install.ps1 failure handling", () => {

301304

expect(result.stderr).toBe("");

302305

});

303306307+

runIfPowerShell("selects native ARM64 downloads when x64 PowerShell is emulated", () => {

308+

const tempDir = harness.createTempDir("openclaw-install-ps1-");

309+

const scriptPath = join(tempDir, "install.ps1");

310+

const scriptWithoutEntryPoint = source.replace(ENTRYPOINT_RE, "");

311+

writeFileSync(

312+

scriptPath,

313+

[

314+

scriptWithoutEntryPoint,

315+

"",

316+

"$env:PROCESSOR_ARCHITEW6432 = $null",

317+

"$env:PROCESSOR_ARCHITECTURE = 'AMD64'",

318+

"function Get-CimInstance {",

319+

" [CmdletBinding()]",

320+

" param([string]$ClassName)",

321+

" if ($ClassName -eq 'Win32_Processor') { return [pscustomobject]@{ Architecture = 12; Name = 'Cobalt 100' } }",

322+

" if ($ClassName -eq 'Win32_ComputerSystem') { return [pscustomobject]@{ SystemType = 'ARM64-based PC' } }",

323+

' throw "Unexpected CIM class $ClassName"',

324+

"}",

325+

"function Invoke-RestMethod {",

326+

" param([string]$Uri, [object]$Headers)",

327+

" if ($Uri -eq 'https://nodejs.org/dist/index.json') {",

328+

" return @(",

329+

" [pscustomobject]@{ version = 'v24.17.0'; files = @('win-arm64-zip', 'win-x64-zip') }",

330+

" )",

331+

" }",

332+

" [pscustomobject]@{",

333+

" tag_name = 'v2.54.0.windows.1'",

334+

" assets = @(",

335+

" [pscustomobject]@{ name = 'MinGit-2.54.0-64-bit.zip'; browser_download_url = 'https://example.test/x64.zip' },",

336+

" [pscustomobject]@{ name = 'MinGit-2.54.0-arm64.zip'; browser_download_url = 'https://example.test/arm64.zip' }",

337+

" )",

338+

" }",

339+

"}",

340+

"$nodeDownload = Resolve-PortableNodeDownload",

341+

"if ($nodeDownload.Name -ne 'node-v24.17.0-win-arm64.zip') { throw \"NodeName=$($nodeDownload.Name)\" }",

342+

"$gitDownload = Resolve-PortableGitDownload",

343+

"if ($gitDownload.Name -ne 'MinGit-2.54.0-arm64.zip') { throw \"GitName=$($gitDownload.Name)\" }",

344+

"",

345+

].join("\n"),

346+

);

347+

chmodSync(scriptPath, 0o755);

348+349+

const result = runPowerShell([

350+

"-NoLogo",

351+

"-NoProfile",

352+

"-ExecutionPolicy",

353+

"Bypass",

354+

"-File",

355+

scriptPath,

356+

]);

357+358+

expect(result.status).toBe(0);

359+

expect(result.stderr).toBe("");

360+

});

361+304362

it("activates the repo-pinned pnpm version for git installs", () => {

305363

const pnpmVersionBody = extractFunctionBody(source, "Get-RepoPnpmVersion");

306364

const pnpmVersionMatchBody = extractFunctionBody(source, "Test-PnpmCommandMatchesVersion");