Skip to content

Commit a138a29

Browse files
committed
feat(desktop): Installer for Cursor
Signed-off-by: Mateusz Łoskot <[email protected]>
1 parent a29acc8 commit a138a29

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

install/desktop/app-cursor.sh

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/bin/bash
2+
SCRIPT_NAME="${BASH_SOURCE[0]}"
3+
SCRIPT_PATH="$(dirname "$(realpath "${SCRIPT_NAME}")")"
4+
source "${SCRIPT_PATH}/../../err.sh" "${SCRIPT_NAME}"
5+
source "${SCRIPT_PATH}/../../log.sh" "${SCRIPT_NAME}"
6+
7+
CURSOR_BOOTSTRAP_VERSION="2.4"
8+
9+
echolog "Installing Cursor"
10+
11+
if command -v "cursor" &>/dev/null; then
12+
echolog "Cursor already installed"
13+
else
14+
curl -Lo cursor.deb "https://api2.cursor.sh/updates/download/golden/linux-x64-deb/cursor/${CURSOR_BOOTSTRAP_VERSION}"
15+
sudo dpkg -i cursor.deb
16+
rm -f cursor.deb
17+
fi

0 commit comments

Comments
 (0)