Skip to content

armgit / pibot

Public Imported from GitHub
0

Open-source, local-first AI agent team for your desktop: multi-agent group chats, computer use, browser, MCP, routines and approvals. macOS, Windows, Linux + Android. Built on pi.

467 B
Raw Blame
import { basename, dirname } from "node:path";

/** A signed macOS bundle starts the same core directly, without an interpreter shell. */
export function runnerAppContents(executable: string, platform: string) {
  const macos = dirname(executable);
  const contents = dirname(macos);
  return platform === "darwin" &&
    basename(macos) === "MacOS" &&
    basename(contents) === "Contents" &&
    dirname(contents).endsWith(".app")
    ? contents
    : undefined;
}