|
1 | 1 | #!/bin/sh |
2 | 2 |
|
3 | 3 | set -eu |
4 | | -ARCH="$(uname -m)" |
5 | | -DEB_SOURCE="https://cursor.com/download" |
6 | | -EXTRA_PACKAGES="https://raw.githubusercontent.com/pkgforge-dev/Anylinux-AppImages/refs/heads/main/useful-tools/get-debloated-pkgs.sh" |
| 4 | + |
| 5 | +ARCH=$(uname -m) |
7 | 6 |
|
8 | 7 | echo "Installing dependencies..." |
9 | 8 | echo "---------------------------------------------------------------" |
10 | 9 | pacman -Syu --noconfirm \ |
11 | 10 | base-devel \ |
12 | | - curl \ |
13 | | - git \ |
14 | 11 | inetutils \ |
15 | 12 | libx11 \ |
16 | 13 | libxrandr \ |
17 | 14 | libxss \ |
18 | 15 | nss \ |
19 | 16 | pulseaudio \ |
20 | 17 | pulseaudio-alsa \ |
21 | | - pipewire-audio \ |
22 | | - wget \ |
23 | | - xorg-server-xvfb \ |
24 | | - zsync |
| 18 | + pipewire-audio |
25 | 19 |
|
26 | 20 | if [ "$ARCH" = 'x86_64' ]; then |
27 | | - pacman -Syu --noconfirm libva-intel-driver |
| 21 | + pacman -Syu --noconfirm libva-intel-driver |
28 | 22 | fi |
29 | 23 |
|
30 | 24 | echo "Installing debloated packages..." |
31 | 25 | echo "---------------------------------------------------------------" |
32 | | -wget --retry-connrefused --tries=30 "$EXTRA_PACKAGES" -O ./get-debloated-pkgs.sh |
33 | | -chmod +x ./get-debloated-pkgs.sh |
34 | | -./get-debloated-pkgs.sh --add-common --prefer-nano ffmpeg-mini intel-media-driver-mini |
| 26 | +get-debloated-pkgs --add-common --prefer-nano ffmpeg-mini intel-media-driver-mini |
35 | 27 |
|
36 | 28 | echo "Getting Cursor..." |
37 | 29 | echo "---------------------------------------------------------------" |
| 30 | +DEB_SOURCE="https://cursor.com/download" |
38 | 31 | case "$ARCH" in # they use AMD64 and ARM64 for the deb links |
39 | 32 | x86_64) deb_arch=x64;; |
40 | 33 | aarch64) deb_arch=arm64;; |
41 | 34 | esac |
42 | 35 |
|
43 | | -DEB_LINK=$( |
44 | | - wget --retry-connrefused --tries=30 "$DEB_SOURCE" -O - \ |
45 | | - | sed 's/[()",{} ]/\n/g' \ |
46 | | - | grep "https.*download.*linux.*$deb_arch.*deb" \ |
47 | | - | head -1 |
| 36 | +DEB_LINK=$(wget --retry-connrefused --tries=30 "$DEB_SOURCE" -O - \ |
| 37 | + | sed 's/[()",{} ]/\n/g' \ |
| 38 | + | grep "https.*download.*linux.*$deb_arch.*deb" \ |
| 39 | + | head -1 |
48 | 40 | ) |
49 | 41 |
|
50 | 42 | if ! wget --retry-connrefused --tries=30 "$DEB_LINK" -O /tmp/cursor.deb 2>/tmp/download.log; then |
|
0 commit comments