From eb8944c42073603cf35378c975173dd6092f93d6 Mon Sep 17 00:00:00 2001 From: Igor Tarasenko Date: Mon, 7 Jul 2025 20:54:49 +0200 Subject: [PATCH] Add DIA browser support for macOS - Added DIA browser to the list of supported browsers in install.sh - Added DIA-specific manifest location for macOS - Updated browser validation logic to include DIA --- install.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index acdf3f9..d5ac17a 100755 --- a/install.sh +++ b/install.sh @@ -8,6 +8,7 @@ if [[ "$#" -lt 1 || ( ( "$1" == "brave" && "$#" -eq 2 && ${#2} -eq 32 ) || ( "$1" == "chrome" && "$#" -eq 2 && ${#2} -eq 32 ) || ( "$1" == "arc" && "$#" -eq 2 && ${#2} -eq 32 ) || + ( "$1" == "dia" && "$#" -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 ) || @@ -56,6 +57,8 @@ case "$OS $BROWSER" in MANIFEST_LOCATION="$HOME/Library/Application Support/Vivaldi/NativeMessagingHosts";; "Darwin arc") MANIFEST_LOCATION="$HOME/Library/Application Support/Arc/User Data/NativeMessagingHosts";; + "Darwin dia") + MANIFEST_LOCATION="$HOME/Library/Application Support/Dia/User Data/NativeMessagingHosts";; esac mkdir -p "$MANIFEST_LOCATION" @@ -64,7 +67,7 @@ APP_NAME="com.rsnous.tabfs" EXE_PATH=$(pwd)/fs/tabfs case "$BROWSER" in - chrome | chromium | chromebeta | brave | vivaldi | edgedev | opera | arc) + chrome | chromium | chromebeta | brave | vivaldi | edgedev | opera | arc | dia) EXTENSION_ID=$2 MANIFEST=$(cat <