Skip to content

Commit 9e591af

Browse files
fix: include rcli_overlay in release package for visual mode
The screen capture overlay (green frame for VLM) requires the rcli_overlay helper binary, which was built but not packaged. Made-with: Cursor
1 parent 880b7b7 commit 9e591af

3 files changed

Lines changed: 10 additions & 1 deletion

File tree

Formula/rcli.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ class Rcli < Formula
1111

1212
def install
1313
bin.install "bin/rcli"
14+
bin.install "bin/rcli_overlay" if File.exist? "bin/rcli_overlay"
1415
lib.install Dir["lib/*.dylib"]
1516
end
1617

install.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ else
6969
rm -rf "$CELLAR" 2>/dev/null || sudo rm -rf "$CELLAR"
7070
mkdir -p "$CELLAR/bin" "$CELLAR/lib" 2>/dev/null || sudo mkdir -p "$CELLAR/bin" "$CELLAR/lib"
7171
cp "$WORKDIR"/rcli-*/bin/rcli "$CELLAR/bin/" 2>/dev/null || sudo cp "$WORKDIR"/rcli-*/bin/rcli "$CELLAR/bin/"
72+
cp "$WORKDIR"/rcli-*/bin/rcli_overlay "$CELLAR/bin/" 2>/dev/null || sudo cp "$WORKDIR"/rcli-*/bin/rcli_overlay "$CELLAR/bin/" 2>/dev/null || true
7273
cp "$WORKDIR"/rcli-*/lib/*.dylib "$CELLAR/lib/" 2>/dev/null || sudo cp "$WORKDIR"/rcli-*/lib/*.dylib "$CELLAR/lib/"
7374

7475
brew link --overwrite "$FORMULA" 2>/dev/null || sudo brew link --overwrite "$FORMULA"

scripts/package.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,12 @@ echo ""
2121
rm -rf "$PROJECT_DIR/dist"
2222
mkdir -p "$DIST_DIR/bin" "$DIST_DIR/lib"
2323

24-
# --- Collect binary ---
24+
# --- Collect binaries ---
2525
cp "$BUILD_DIR/rcli" "$DIST_DIR/bin/rcli"
26+
if [ -f "$BUILD_DIR/rcli_overlay" ]; then
27+
cp "$BUILD_DIR/rcli_overlay" "$DIST_DIR/bin/rcli_overlay"
28+
echo " + bin/rcli_overlay"
29+
fi
2630

2731
# --- Collect dylibs ---
2832
DYLIBS=(
@@ -148,6 +152,9 @@ done
148152
echo ""
149153
echo "Codesigning..."
150154
codesign --force --sign - "$BINARY"
155+
if [ -f "$DIST_DIR/bin/rcli_overlay" ]; then
156+
codesign --force --sign - "$DIST_DIR/bin/rcli_overlay"
157+
fi
151158
for lib in "$DIST_DIR/lib/"*.dylib; do
152159
codesign --force --sign - "$lib"
153160
done

0 commit comments

Comments
 (0)