From dfb9212ed20d6ce789d3c797e01dc774748c3d64 Mon Sep 17 00:00:00 2001 From: Ezekiel Templin Date: Fri, 8 Jan 2021 19:11:24 -0800 Subject: Add support for Chrome Beta on macOS --- install.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index d4a9d90..9232e4c 100755 --- a/install.sh +++ b/install.sh @@ -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 " + echo "Usage: $0 " 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 < Date: Sat, 9 Jan 2021 08:52:42 -0800 Subject: Update install.sh Co-authored-by: huglovefan --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 9232e4c..04c1c0a 100755 --- a/install.sh +++ b/install.sh @@ -8,7 +8,7 @@ if [[ "$#" -lt 1 || ( ( "$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 " + echo "Usage: $0 " exit 2 fi -- cgit v1.2.3