aboutsummaryrefslogtreecommitdiff
path: root/scripts/betterdiscord
blob: 12d8ce1c6ad4b2695d89fcf752a589b6d1fe00c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash
set -xe

if ! command -v "bun" >/dev/null 2>&1; then
  pnpm add -g bun
fi

if ! [ -d "$HOME/BetterDiscord" ]; then
  git clone https://github.com/BetterDiscord/BetterDiscord --depth=1 -b main "$HOME/BetterDiscord"
fi

cd "$HOME/BetterDiscord/" || exit
git clean -ffxd
git restore .
git pull
bun install
bun run build
bun inject
pkill -9 "Discord";
discord