mirror of
https://github.com/osnr/TabFS.git
synced 2026-03-14 13:05:45 +01:00
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:
parent
cdf0f2e2dc
commit
eb8944c420
1 changed files with 4 additions and 1 deletions
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue