forked from 0vf/Discord-BSD
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
executable file
·20 lines (20 loc) · 924 Bytes
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh
printf "Discord 0.0.19\n"
printf "Discord desktop client based on Discord Web for FreeBSD\n"
install() {
printf "Installing...\n"
mkdir -p ~/.local/share/discord-bsd
mkdir -p ~/.local/bin
mkdir -p ~/.local/share/applications
cp -rv ./* ~/.local/share/discord-bsd
mv -v ~/.local/share/discord-bsd/discord.desktop ~/.local/share/applications/
mv -v ~/.local/share/discord-bsd/discord ~/.local/bin
sed -i '' "s/Exec=auto1/Exec=\/home\/$USER\/.local\/bin\/discord/" ~/.local/share/applications/discord.desktop
sed -i '' "s/Icon=auto2/Icon=\/home\/$USER\/.local\/share\/discord-bsd\/discord.png/" ~/.local/share/applications/discord.desktop
cd /home/$USER/.local/share/discord-bsd
npm install
ln -s /usr/local/bin/electron25 /usr/local/bin/electron
ln -s /usr/local/bin/electron25 /usr/local/bin/electron19
printf "Discord 0.0.19 installed!\n"
}
printf "Launching installer...\n" && install