blob: e054a3c161ac363530a52126be6e3f2122f31058 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
#!/bin/sh
# Copyright (c) 2024-2025 Jim Philip, with Reserved Package Name "vencord-hook"
# Copyright (c) 2022-2025 Vendicated and Vencord contributors, with Reserved Project Name "Vencord"
set -e
err_handler() {
echo "an error occurred, please contact the package maintainer: https://aur.archlinux.org/packages/vencord-hook"
}
trap err_handler ERR
installer=$(mktemp /tmp/vencord.XXXXXX)
trap 'rm -f "$installer"' EXIT
curl -sSL https://github.com/Vendicated/VencordInstaller/releases/latest/download/VencordInstallerCli-Linux \
--output "$installer"
chmod +x "$installer"
while IFS= read -r package || [ -n "$package" ]; do
branch=$(echo "$package" | sed 's/^discord-*//')
if [ -z "$branch" ]; then
branch="stable"
fi
echo "Installing Vencord for $branch branch..."
"$installer" -install -branch "$branch" || {
echo "Falling back to auto branch..."
"$installer" -install -branch auto
}
done
|