mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-10-15 12:28:10 +02:00
feat: qualify macOS Codex runner defaults and release artifacts
Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
1 parent
6ca302426b
commit
7b8d29a856
26 files changed
+1185
-111
No files matched your search
@@ -43,15 +43,25 @@ export function paperclipRunnerBinaryNeedsBuild({
|
||||
nativeRunnerRequired,
|
||||
configuredBinary,
|
||||
platform = process.platform,
|
||||
architecture = process.arch,
|
||||
}) {
|
||||
if (!nativeRunnerRequired) return false;
|
||||
if (configuredBinary?.trim()) return false;
|
||||
|
||||
const executable = platform === "win32" ? "paperclip-runnerd.exe" : "paperclip-runnerd";
|
||||
const packageRoot = path.join(repoRoot, "packages", "paperclip-runner");
|
||||
const stagedBinary = path.join(packageRoot, "dist", "bin", executable);
|
||||
const binaryStat = statSync(stagedBinary, { throwIfNoEntry: false });
|
||||
if (!binaryStat?.isFile()) return true;
|
||||
// Match production resolution: a staged release target takes precedence over
|
||||
// the flat source-build output. Remote Mac builds must not trigger Cargo just
|
||||
// because only the normal darwin-<arch> release executable is present.
|
||||
let binaryStat;
|
||||
for (const binary of [
|
||||
path.join(packageRoot, "dist", "bin", `${platform}-${architecture}`, executable),
|
||||
path.join(packageRoot, "dist", "bin", executable),
|
||||
]) {
|
||||
const candidate = statSync(binary, { throwIfNoEntry: false });
|
||||
if (candidate?.isFile()) { binaryStat = candidate; break; }
|
||||
}
|
||||
if (!binaryStat) return true;
|
||||
|
||||
const runnerRoot = path.join(packageRoot, "runner");
|
||||
const buildInputs = [
|
||||
|
||||
Reference in new issue
Block a user