From fdc58caecc427dc398ea8ccafb147a5a1b4a3234 Mon Sep 17 00:00:00 2001 From: 1024x2 Date: Wed, 14 Aug 2024 00:25:41 +0100 Subject: Add initial Vextop patchset and script --- vextop.sh | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100755 vextop.sh (limited to 'vextop.sh') diff --git a/vextop.sh b/vextop.sh new file mode 100755 index 0000000..fa43326 --- /dev/null +++ b/vextop.sh @@ -0,0 +1,53 @@ +#!/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 + +# Save this for later (Vextop needs it) +export VENCORD_FILES_DIR="$(realpath dist)" + +# Back out of Vencord directory +cd .. + +# 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 . -- cgit v1.2.3