Skip to content

Conversation

@samoyedsun
Copy link
Contributor

No description provided.

@cloudwu cloudwu merged commit e5e26cd into cloudwu:master Dec 21, 2025
return platform.Arch == "arm64" and "osx_arm64" or "osx"
end
return "unknown"
end
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

其实,我觉得这样写比较简单:

local plat = lm.os
if plat == "macos" then
  plat  = plat.."_"..platform.Arch
end

然后在 paths 数组里加一项 macos_arm64 / macos_x86 ? 的 key 就可以了。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants