diff options
author | Omar Rizwan <omar@omar.website> | 2021-01-09 14:21:13 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-09 14:21:13 -0800 |
commit | 1e7b1f8ad4a0d4be08e8420a80ab26d01d56fffc (patch) | |
tree | e49fa57eb2cc8ace3cd9d519609b6931120f1843 | |
parent | 6d65a48d4e5fbd467c68f6e98301cf136115c570 (diff) | |
parent | bdcaaaa5308ba9ab0d2ee7b53b949c2c2c8f4269 (diff) |
Merge pull request #43 from ezkl/add-macos-chrome-beta
Add support for Chrome Beta on macOS
-rwxr-xr-x | install.sh | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -6,8 +6,9 @@ if [[ "$#" -lt 1 || ( ! ( ( "$1" == "firefox" && "$#" -eq 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 | chromium EXTENSION_ID | vivaldi EXTENSION_ID | firefox>" + echo "Usage: $0 <chrome EXTENSION_ID | chromebeta EXTENSION_ID | chromium EXTENSION_ID | vivaldi EXTENSION_ID | firefox>" exit 2 fi @@ -33,6 +34,8 @@ case "$OS $BROWSER" in MANIFEST_LOCATION="$HOME/.config/vivaldi/NativeMessagingHosts";; "Darwin chrome") MANIFEST_LOCATION="$HOME/Library/Application Support/Google/Chrome/NativeMessagingHosts";; + "Darwin chromebeta") + MANIFEST_LOCATION="$HOME/Library/Application Support/Google/Chrome Beta/NativeMessagingHosts";; "Darwin chromium") MANIFEST_LOCATION="$HOME/Library/Application Support/Chromium/NativeMessagingHosts";; esac @@ -43,7 +46,7 @@ APP_NAME="com.rsnous.tabfs" EXE_PATH=$(pwd)/fs/tabfs case "$BROWSER" in - chrome | chromium | vivaldi) + chrome | chromium | chromebeta | vivaldi) EXTENSION_ID=$2 MANIFEST=$(cat <<EOF { |