Skip to content

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

release-app retry v2.4.223 mac bun sidecar

Louis Beaumont9e1589c7271b
diff --git a/apps/screenpipe-app-tauri/scripts/pre_build.js b/apps/screenpipe-app-tauri/scripts/pre_build.js
index 335d63c3f..8ed8cd8d2 100644
--- a/apps/screenpipe-app-tauri/scripts/pre_build.js
+++ b/apps/screenpipe-app-tauri/scripts/pre_build.js
@@ -205,23 +205,22 @@ 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);
+ 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 ${releaseTarget}.`);
return;
}
+
+ const systemBun = await findOnPath('bun');
+ if (!systemBun) {
+ throw new Error(`expected bun on PATH for ${releaseTarget}, but command lookup failed`);
+ }
+
+ console.log(`using system bun binary for ${releaseTarget} tauri sidecar: ${systemBun}`);
+ await copyFile(systemBun, bunDest);
+ return;
}
if (await fs.exists(bunDest1) && await fs.exists(bunDest2)) {