YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context
Rust agentsagiaiai-memoryaudio-recordingcomputer-visionhermeshermes-agentllmlocal-ailocal-firstmachine-learningmcpmultimodalopenclawprivacyrewindscreen-recordingspeech-to-textycombinator
ci: use installed bun sidecar on mac release
Louis Beaumont542636d2763b
diff --git a/apps/screenpipe-app-tauri/scripts/pre_build.js b/apps/screenpipe-app-tauri/scripts/pre_build.jsindex b1341c31c..335d63c3f 100644--- a/apps/screenpipe-app-tauri/scripts/pre_build.js+++ b/apps/screenpipe-app-tauri/scripts/pre_build.js@@ -205,6 +205,25 @@ async function copyBunBinary() {bunDest1 = path.join(cwd, 'bun-aarch64-apple-darwin');bunDest2 = path.join(cwd, 'bun-x86_64-apple-darwin');+ if (process.env.CI === 'true' || process.env.GITHUB_ACTIONS === 'true') {+ const releaseTarget = process.env.SCREENPIPE_RELEASE_TARGET;+ if (releaseTarget) {+ const bunDest = path.join(cwd, `bun-${releaseTarget}`);+ if (await fs.exists(bunDest)) {+ console.log('bun binary already exists for tauri.');+ return;+ }++ const systemBun = await findOnPath('bun');+ if (!systemBun) {+ throw new Error('CI expected bun on PATH, but command lookup failed');+ }+ console.log(`using CI bun binary for tauri sidecar: ${systemBun}`);+ await copyFile(systemBun, bunDest);+ return;+ }+ }+if (await fs.exists(bunDest1) && await fs.exists(bunDest2)) {console.log('bun binaries already exist for both macOS architectures.');return;