mirror of
https://git.1024x2.xyz/1024x2/vexcord.git
synced 2025-04-12 01:46:30 +02:00
32 lines
546 B
Bash
Executable File
32 lines
546 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -euo pipefail
|
|
|
|
# Pull the patches repository
|
|
git pull
|
|
|
|
# Emergency Alert System
|
|
if [ -e Alert ]; then
|
|
cat Alert >&2
|
|
exit 1
|
|
fi
|
|
|
|
# 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
|