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: retry bundled bun downloads
Louis Beaumontdfc896d11ed2
diff --git a/apps/screenpipe-app-tauri/scripts/pre_build.js b/apps/screenpipe-app-tauri/scripts/pre_build.jsindex f090ed61b..349a744ef 100644--- a/apps/screenpipe-app-tauri/scripts/pre_build.js+++ b/apps/screenpipe-app-tauri/scripts/pre_build.js@@ -167,7 +167,7 @@ async function copyBunBinary() {console.log(`downloading bun baseline v${bunVersion} for linux...`);const tmpZip = path.join(cwd, 'bun-baseline.zip');try {- await $`curl -L -o ${tmpZip} ${baselineUrl}`;+ await downloadFile(baselineUrl, tmpZip, { retries: 10 });await $`unzip -o ${tmpZip} -d ${cwd}/bun-baseline-tmp`;const extractedBun = path.join(cwd, 'bun-baseline-tmp', 'bun-linux-x64-baseline', 'bun');await copyFile(extractedBun, bunDest1);@@ -207,7 +207,7 @@ async function copyBunBinary() {const tmpZip = path.join(cwd, `bun-darwin-${label}.zip`);const tmpDir = path.join(cwd, `bun-darwin-${label}-tmp`);try {- await $`curl -L -o ${tmpZip} ${url}`;+ await downloadFile(url, tmpZip, { retries: 10 });await $`unzip -o ${tmpZip} -d ${tmpDir}`;// The zip contains a folder like bun-darwin-aarch64/bun or bun-darwin-x64/bunconst entries = await fs.readdir(tmpDir);