MCPcopy Create free account
hub / github.com/6174/comflowyspace / getMacArchitecture

Function getMacArchitecture

apps/node/src/modules/utils/get-mac-arch.ts:3–9  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1import { execa } from "execa";
2
3export async function getMacArchitecture(): Promise<string> {
4 // 使用 uname -m 获取系统架构信息
5 const { stdout } = await execa('uname', ['-m']);
6 const architecture = stdout.trim();
7
8 return architecture === 'arm64' ? 'arm64' : 'x86_64';
9}

Callers 1

installCondaTaskFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected