aboutsummaryrefslogtreecommitdiffstats
path: root/vextop.sh
blob: c409173f5af1236430d07899591a04f83db1f284 (plain) (blame)
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
#!/usr/bin/env bash

set -euo pipefail

# Build Vencord
./build.sh

# Save this for later (Vextop needs it)
export VENCORD_FILES_DIR="$(realpath Vencord/dist)"

# Do we have the Vesktop sources cloned?
if [ -e Vesktop/.git ]; then
	# Update sources
	cd Vesktop
	git fetch
else
	# Clone sources
	git clone https://github.com/Vencord/Vesktop.git Vesktop
	cd Vesktop
fi

# Reset vextop branch and apply patches
git checkout -B vextop origin/main
git am ../vesktop-patches/*.patch

# Build vesktop
pnpm i --frozen-lockfile
pnpm build

# Run vesktop
pnpm electron .