Files
caelestia-cli/install/discord.fish
T
2 * r + 2 * t 669eaa61cb install: better install + use data and state
Don't complete remove repos, use git pull instead
Use XDG_DATA_HOME and XDG_STATE_HOME
2025-02-22 14:25:41 +11:00

27 lines
509 B
Fish
Executable File

#!/bin/fish
if test -z "$argv[1]"
echo 'Usage: caelestia install discord <client_config_folder_name>'
exit 1
end
. (dirname (status filename))/util.fish
install-deps git
install-optional-deps 'arrpc (rich presence)'
set -l client $CONFIG/$argv[1]
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 config
confirm-overwrite $client/themes
ln -s $dist/themes $client/themes
log 'Done.'