aboutsummaryrefslogtreecommitdiffstats
path: root/build.sh
blob: 8f550c23a4a81fdc73cd1fbb4863e9c122f8bcd3 (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
#!/usr/bin/env bash

set -euo pipefail

# Pull the patches repository
git pull

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

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

# Build vencord
pnpm i --frozen-lockfile
node scripts/build/build.mjs