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

fix pre build

Louis Beaumont250394c0ceb5
diff --git a/examples/apps/screenpipe-app-tauri/scripts/pre_build.js b/examples/apps/screenpipe-app-tauri/scripts/pre_build.js
index 69b488b12..27fdaee13 100644
--- a/examples/apps/screenpipe-app-tauri/scripts/pre_build.js
+++ b/examples/apps/screenpipe-app-tauri/scripts/pre_build.js
@@ -322,18 +322,20 @@ if (platform == 'macos') {
await $`tar xf ${config.macos.ffmpegName}.tar.xz`
await $`mv ${config.macos.ffmpegName} ${config.ffmpegRealname}`
await $`rm ${config.macos.ffmpegName}.tar.xz`
+ } else {
+ console.log('FFMPEG already exists');
+ }
- // Move and rename ffmpeg and ffprobe binaries
- const ffmpegSrc = path.join(cwd, config.ffmpegRealname, 'bin', 'ffmpeg');
+ // Move and rename ffmpeg and ffprobe binaries
+ const ffmpegSrc = path.join(cwd, config.ffmpegRealname, 'bin', 'ffmpeg');
- // For x86_64
- await fs.copyFile(ffmpegSrc, path.join(cwd, 'ffmpeg-x86_64-apple-darwin'));
+ // For x86_64
+ await fs.copyFile(ffmpegSrc, path.join(cwd, 'ffmpeg-x86_64-apple-darwin'));
- // For arm64
- await fs.copyFile(ffmpegSrc, path.join(cwd, 'ffmpeg-aarch64-apple-darwin'));
+ // For arm64
+ await fs.copyFile(ffmpegSrc, path.join(cwd, 'ffmpeg-aarch64-apple-darwin'));
- console.log('Moved and renamed ffmpeg binary for externalBin');
- }
+ console.log('Moved and renamed ffmpeg binary for externalBin');
}
// Nvidia