Skip to content

Commit 098ebde

Browse files
netsnekclaude
andcommitted
Include CORS proxy in RPM and fix proxy path lookup
- build-rpm.sh: copy cursor-cors-proxy.js into RPM staging - cursor-web.sh: fallback to /opt/cursor/share/cursor-web/ for proxy path Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 1d6619b commit 098ebde

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

build-rpm.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ chmod +x "$RPMDIR/SOURCES/staging/usr/bin/cursor-web"
3030
mkdir -p "$RPMDIR/SOURCES/staging/opt/cursor/share/cursor-web"
3131
cp "$SCRIPTDIR/patch-cursor-web.sh" "$RPMDIR/SOURCES/staging/opt/cursor/share/cursor-web/"
3232
cp "$SCRIPTDIR/workbench-desktop-shim.js" "$RPMDIR/SOURCES/staging/opt/cursor/share/cursor-web/"
33+
cp "$SCRIPTDIR/cursor-cors-proxy.js" "$RPMDIR/SOURCES/staging/opt/cursor/share/cursor-web/"
3334
chmod +x "$RPMDIR/SOURCES/staging/opt/cursor/share/cursor-web/patch-cursor-web.sh"
3435

3536
# Copy spec

cursor-web.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ SCRIPTDIR="$(cd "$(dirname "$0")" && pwd)"
1010

1111
# Start CORS proxy for Cursor API calls (api2.cursor.sh)
1212
CORS_PROXY="$SCRIPTDIR/cursor-cors-proxy.js"
13+
[ ! -f "$CORS_PROXY" ] && CORS_PROXY="$CURSOR_DIR/share/cursor-web/cursor-cors-proxy.js"
1314
if [ -f "$CORS_PROXY" ]; then
1415
# Kill any existing proxy on this port
1516
fuser -k "$CORS_PORT/tcp" 2>/dev/null || true

0 commit comments

Comments
 (0)