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
This commit is contained in:
Igor Tarasenko 2025-07-07 20:54:49 +02:00
commit eb8944c420

View file

@ -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 <<EOF
{