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

possibly fix macOS Intel build (#1387)

neo773eaf4053454e6
diff --git a/screenpipe-app-tauri/scripts/pre_build.js b/screenpipe-app-tauri/scripts/pre_build.js
index 12340e2c9..7cfc36896 100644
--- a/screenpipe-app-tauri/scripts/pre_build.js
+++ b/screenpipe-app-tauri/scripts/pre_build.js
@@ -373,6 +373,10 @@ if (platform == 'macos') {
// Compile directly to the final destination
await $`swiftc -O -whole-module-optimization -enforce-exclusivity=unchecked -num-threads 8 -target ${arch}-apple-macos11.0 -o ${outputPath} ${swiftSrc} -framework Cocoa -framework ApplicationServices -framework Foundation`;
+ // Sign with ad-hoc signature first - this ensures the binary is at least signed
+ // Tauri will re-sign it later with the proper identity
+ await $`codesign --force --sign - ${outputPath}`;
+
console.log(`Swift UI monitor for ${arch} compiled successfully`);
await fs.chmod(outputPath, 0o755);
}