De-duplicate vextop script

This commit is contained in:
1024x2 2024-08-14 01:29:30 +01:00
parent 7335747c1b
commit 8676c6705d
Signed by: 1024x2
GPG Key ID: DEF24F6555C1934C
2 changed files with 9 additions and 25 deletions

View File

@ -5,6 +5,12 @@ 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

View File

@ -2,33 +2,11 @@
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
# Build Vencord
./build.sh
# Save this for later (Vextop needs it)
export VENCORD_FILES_DIR="$(realpath dist)"
# Back out of Vencord directory
cd ..
export VENCORD_FILES_DIR="$(realpath Vencord/dist)"
# Do we have the Vesktop sources cloned?
if [ -e Vesktop/.git ]; then