-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
executable file
·14 lines (10 loc) · 1.05 KB
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/env bash
projectRoot="$( cd -- "$(dirname "$0")" > /dev/null 2>&1 ; pwd -P )"
mkdir -p ~/.mozilla/native-messaging-hosts
mkdir -p ~/.config/chromium/NativeMessagingHosts
mkdir -p ~/.config/google-chrome/NativeMessagingHosts
mkdir -p ~/.config/microsoft-edge/NativeMessagingHosts
sed "s|/usr/lib/discord-web-sys-ptt|$projectRoot/native|g" $projectRoot/native/native-messaging-hosts/firefox.json > ~/.mozilla/native-messaging-hosts/com.aviana.discord_web_sys_ptt.json
sed "s|/usr/lib/discord-web-sys-ptt|$projectRoot/native|g" $projectRoot/native/native-messaging-hosts/chromium.json > ~/.config/chromium/NativeMessagingHosts/com.aviana.discord_web_sys_ptt.json
sed "s|/usr/lib/discord-web-sys-ptt|$projectRoot/native|g" $projectRoot/native/native-messaging-hosts/chromium.json > ~/.config/google-chrome/NativeMessagingHosts/com.aviana.discord_web_sys_ptt.json
sed "s|/usr/lib/discord-web-sys-ptt|$projectRoot/native|g" $projectRoot/native/native-messaging-hosts/chromium.json > ~/.config/microsoft-edge/NativeMessagingHosts/com.aviana.discord_web_sys_ptt.json