Browse Source

Merge commit 'refs/pullreqs/55'

pull/64/head
Omar Rizwan 2 months ago
parent
commit
d7f462e964
1 changed files with 8 additions and 3 deletions
  1. +8
    -3
      install.sh

+ 8
- 3
install.sh View File

@ -9,8 +9,11 @@ if [[ "$#" -lt 1 || (
( "$1" == "chrome" && "$#" -eq 2 && ${#2} -eq 32 ) ||
( "$1" == "vivaldi" && "$#" -eq 2 && ${#2} -eq 32 ) ||
( "$1" == "chromebeta" && "$#" -eq 2 && ${#2} -eq 32 ) ||
( "$1" == "chromium" && "$#" -eq 2 && ${#2} -eq 32 ) ) ) ]]; then
echo "Usage: $0 <chrome EXTENSION_ID | chromebeta EXTENSION_ID | chromium EXTENSION_ID | vivaldi EXTENSION_ID | firefox>"
( "$1" == "chromium" && "$#" -eq 2 && ${#2} -eq 32 ) ||
( "$1" == "edgedev" && "$#" -eq 2 && ${#2} -eq 32 ) ) ) ]]; then
echo "Usage: $0 <chrome EXTENSION_ID | firefox |
chromebeta EXTENSION_ID | chromium EXTENSION_ID |
vivaldi EXTENSION_ID | edgedev EXTENSION_ID | brave EXTENSION_ID>"
exit 2
fi
@ -36,6 +39,8 @@ case "$OS $BROWSER" in
MANIFEST_LOCATION="$HOME/.config/chromium/NativeMessagingHosts";;
"Linux vivaldi")
MANIFEST_LOCATION="$HOME/.config/vivaldi/NativeMessagingHosts";;
"Linux edgedev")
MANIFEST_LOCATION="$HOME/.config/microsoft-edge-dev/NativeMessagingHosts";;
"Darwin chrome")
MANIFEST_LOCATION="$HOME/Library/Application Support/Google/Chrome/NativeMessagingHosts";;
"Darwin chromebeta")
@ -52,7 +57,7 @@ APP_NAME="com.rsnous.tabfs"
EXE_PATH=$(pwd)/fs/tabfs
case "$BROWSER" in
brave | chrome | chromium | chromebeta | vivaldi)
chrome | chromium | chromebeta | brave | vivaldi | edgedev)
EXTENSION_ID=$2
MANIFEST=$(cat <<EOF
{


Loading…
Cancel
Save