Skip to content

Commit 5af8bd9

Browse files
authored
update to template
1 parent f1ad8ef commit 5af8bd9

1 file changed

Lines changed: 10 additions & 18 deletions

File tree

get-dependencies.sh

Lines changed: 10 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,42 @@
11
#!/bin/sh
22

33
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)
76

87
echo "Installing dependencies..."
98
echo "---------------------------------------------------------------"
109
pacman -Syu --noconfirm \
1110
base-devel \
12-
curl \
13-
git \
1411
inetutils \
1512
libx11 \
1613
libxrandr \
1714
libxss \
1815
nss \
1916
pulseaudio \
2017
pulseaudio-alsa \
21-
pipewire-audio \
22-
wget \
23-
xorg-server-xvfb \
24-
zsync
18+
pipewire-audio
2519

2620
if [ "$ARCH" = 'x86_64' ]; then
27-
pacman -Syu --noconfirm libva-intel-driver
21+
pacman -Syu --noconfirm libva-intel-driver
2822
fi
2923

3024
echo "Installing debloated packages..."
3125
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
3527

3628
echo "Getting Cursor..."
3729
echo "---------------------------------------------------------------"
30+
DEB_SOURCE="https://cursor.com/download"
3831
case "$ARCH" in # they use AMD64 and ARM64 for the deb links
3932
x86_64) deb_arch=x64;;
4033
aarch64) deb_arch=arm64;;
4134
esac
4235

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
4840
)
4941

5042
if ! wget --retry-connrefused --tries=30 "$DEB_LINK" -O /tmp/cursor.deb 2>/tmp/download.log; then

0 commit comments

Comments
 (0)