Files
caelestia-cli/install/discord.fish
T
2 * r + 2 * t 4f4109784d install: better discord install + fix broken links
Take any number of inputs
Hardcode some custom clients
For some reason test -e doesnt count broken links as existing idk why
2025-03-02 22:38:36 +11:00

26 lines
519 B
Fish
Executable File

#!/bin/fish
. (dirname (status filename))/util.fish
install-deps git
install-optional-deps 'arrpc (rich presence)'
set -l dist $C_DATA/discord
# Update/Clone repo
update-repo discord $dist
# Install systemd service
setup-systemd-monitor discord $dist
# Link themes to client configs
set -l clients discord vesktop equibop legcord $argv
for client in $clients
if test -d $CONFIG/$client
log "Linking themes for $client"
install-link $dist/themes $CONFIG/$client/themes
end
end
log 'Done.'