From d23bd89aca82c3679a13892007ccb5fa7d5b25be Mon Sep 17 00:00:00 2001 From: 1024x2 Date: Thu, 25 Apr 2024 00:50:36 +0100 Subject: Add basic build and inject scripts Linux-only for now. --- build.sh | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100755 build.sh (limited to 'build.sh') diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..c78474c --- /dev/null +++ b/build.sh @@ -0,0 +1,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 ../*.patch + +# Build vencord +pnpm i --frozen-lockfile +node scripts/build/build.mjs -- cgit v1.2.3