Skip to content

install.ps1解析架构异常 #1850

Description

@daleqqq

What version of Kimi Code is running?

0.26.0

Which open platform/subscription were you using?

Windows ARM64

Which model were you using?

No response

What platform is your computer?

Windows 11 ARM64

What issue are you seeing?

脚本解析时出现下面的错误:

    ==> Detected target: win32-arm64 arm64
    ==> Resolving latest version from https://code.kimi.com/kimi-code/latest
    ==> Latest version: 0.26.0
    ==> Fetching manifest https://code.kimi.com/kimi-code/binaries/0.26.0/manifest.json
    error: platform win32-arm64 arm64 not found in manifest

查看脚本,应该是powershell默认不区分大小写,所以两个arm64的判断重复了,脚本片段如下:

  $arch = switch ($rawArch) {
    'X64'     { 'x64' }
    'X86'     { 'x86' }
    'Arm64'   { 'arm64' }
    'ARM64'   { 'arm64' }
    'AMD64'   { 'x64' }
    'IA64'    { 'ia64' }
    default   { Die "unsupported architecture: $rawArch" }
  }

What steps can reproduce the bug?

在Window 11 ARM版使用powershell脚本安装

What is the expected behavior?

No response

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions