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: build issue

Louis Beaumont3951123efbc6
diff --git a/.github/workflows/release-cli.yml b/.github/workflows/release-cli.yml
index 78f002faf..b41d72cfb 100644
--- a/.github/workflows/release-cli.yml
+++ b/.github/workflows/release-cli.yml
@@ -57,7 +57,7 @@ jobs:
- name: Build with Metal feature
env:
- DESTINATION: "brew"
+ RUSTFLAGS: "-C link-arg=-Wl,-rpath,@executable_path/../lib -C link-arg=-Wl,-rpath,@loader_path/../lib"
run: |
export PKG_CONFIG_PATH="/usr/local/opt/ffmpeg/lib/pkgconfig:$PKG_CONFIG_PATH"
export PKG_CONFIG_ALLOW_CROSS=1
@@ -78,8 +78,6 @@ jobs:
echo "Set version to: $VERSION"
- name: Create deployment package
- env:
- RUSTFLAGS: "-C link-arg=-Wl,-rpath,@executable_path/../lib -C link-arg=-Wl,-rpath,@loader_path/../lib"
run: |
mkdir -p screenpipe-${{ env.VERSION }}-${{ matrix.target }}/bin
mkdir -p screenpipe-${{ env.VERSION }}-${{ matrix.target }}/lib
diff --git a/screenpipe-vision/lib/libscreenpipe.dylib b/screenpipe-vision/lib/libscreenpipe.dylib
new file mode 100755
index 000000000..e5065d58c
Binary files /dev/null and b/screenpipe-vision/lib/libscreenpipe.dylib differ
diff --git a/screenpipe-vision/src/ocr.swift b/screenpipe-vision/src/ocr.swift
index 540090ff8..f63b10f01 100644
--- a/screenpipe-vision/src/ocr.swift
+++ b/screenpipe-vision/src/ocr.swift
@@ -89,4 +89,7 @@ public func performOCR(imageData: UnsafePointer<UInt8>, length: Int, width: Int,
// # Compile for arm64 (aarch64)
// swiftc -emit-library -target arm64-apple-macosx11.0 -o screenpipe-vision/lib/libscreenpipe_arm64.dylib screenpipe-vision/src/ocr.swift
+// # Combine into a universal binary
+// lipo -create screenpipe-vision/lib/libscreenpipe_x86_64.dylib screenpipe-vision/lib/libscreenpipe_arm64.dylib -output screenpipe-vision/lib/libscreenpipe.dylib
+