mirror of
https://git.1024x2.xyz/1024x2/vexcord.git
synced 2025-04-19 21:16:30 +02:00
De-duplicate vextop script
This commit is contained in:
parent
7335747c1b
commit
8676c6705d
6
build.sh
6
build.sh
@ -5,6 +5,12 @@ set -euo pipefail
|
|||||||
# Pull the patches repository
|
# Pull the patches repository
|
||||||
git pull
|
git pull
|
||||||
|
|
||||||
|
# Emergency Alert System
|
||||||
|
if [ -e Alert ]; then
|
||||||
|
cat Alert >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
# Do we have the Vencord sources cloned?
|
# Do we have the Vencord sources cloned?
|
||||||
if [ -e Vencord/.git ]; then
|
if [ -e Vencord/.git ]; then
|
||||||
# Update sources
|
# Update sources
|
||||||
|
28
vextop.sh
28
vextop.sh
@ -2,33 +2,11 @@
|
|||||||
|
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
# Pull the patches repository
|
# Build Vencord
|
||||||
git pull
|
./build.sh
|
||||||
|
|
||||||
# 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
|
|
||||||
|
|
||||||
# Save this for later (Vextop needs it)
|
# Save this for later (Vextop needs it)
|
||||||
export VENCORD_FILES_DIR="$(realpath dist)"
|
export VENCORD_FILES_DIR="$(realpath Vencord/dist)"
|
||||||
|
|
||||||
# Back out of Vencord directory
|
|
||||||
cd ..
|
|
||||||
|
|
||||||
# Do we have the Vesktop sources cloned?
|
# Do we have the Vesktop sources cloned?
|
||||||
if [ -e Vesktop/.git ]; then
|
if [ -e Vesktop/.git ]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user