forked from IceDBorn/pipewire-screenaudio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
14 lines (10 loc) · 1.1 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/pipewire-screenaudio|$projectRoot/native|g" $projectRoot/native/native-messaging-hosts/firefox.json > ~/.mozilla/native-messaging-hosts/com.icedborn.pipewirescreenaudioconnector.json
sed "s|/usr/lib/pipewire-screenaudio|$projectRoot/native|g" $projectRoot/native/native-messaging-hosts/chromium.json > ~/.config/chromium/NativeMessagingHosts/com.icedborn.pipewirescreenaudioconnector.json
sed "s|/usr/lib/pipewire-screenaudio|$projectRoot/native|g" $projectRoot/native/native-messaging-hosts/chromium.json > ~/.config/google-chrome/NativeMessagingHosts/com.icedborn.pipewirescreenaudioconnector.json
sed "s|/usr/lib/pipewire-screenaudio|$projectRoot/native|g" $projectRoot/native/native-messaging-hosts/chromium.json > ~/.config/microsoft-edge/NativeMessagingHosts/com.icedborn.pipewirescreenaudioconnector.json