Skip to content
Snippets Groups Projects
Commit f4a73ae2 authored by developer27's avatar developer27
Browse files

Added Chromium browser support.

parent 197eb3e5
Branches
Tags
No related merge requests found
#!/bin/bash
arc=`$(echo uname -m)`
read -p "Enter Chrome extension ID: " id
echo '{"name": "ufr.dlogic.chrome","description": "UFR","path": "/usr/local/bin/ufr","type": "stdio","allowed_origins": ["chrome-extension://'$id'"]}' > data/Linux/ufr.dlogic.chrome.json
if [ "$arc" = "x86_64" ]; then
mkdir -p /etc/opt/chrome/native-messaging-hosts
cp data/Linux/x86_64/ufr /usr/local/bin/ufr
cp data/Linux/ufr.dlogic.chrome.json /etc/opt/chrome/native-messaging-hosts/ufr.dlogic.chrome.json
else
mkdir -p /etc/opt/chrome/native-messaging-hosts
cp data/Linux/x86/ufr /usr/local/bin/ufr
cp data/Linux/ufr.dlogic.chrome.json /etc/opt/chrome/native-messaging-hosts/ufr.dlogic.chrome.json
fi
\ No newline at end of file
#!/bin/bash
arc=`$(echo uname -m)`
read -p "Enter Chromium extension ID: " id
echo '{"name": "ufr.dlogic.chrome","description": "UFR","path": "/usr/local/bin/ufr","type": "stdio","allowed_origins": ["chrome-extension://'$id'"]}' > data/Linux/ufr.dlogic.chrome.json
if [ "$arc" = "x86_64" ]; then
mkdir -p /etc/opt/chrome/native-messaging-hosts
cp data/Linux/x86_64/ufr /usr/local/bin/ufr
cp data/Linux/ufr.dlogic.chrome.json /etc/opt/chromium/native-messaging-hosts/ufr.dlogic.chrome.json
else
mkdir -p /etc/opt/chrome/native-messaging-hosts
cp data/Linux/x86/ufr /usr/local/bin/ufr
cp data/Linux/ufr.dlogic.chrome.json /etc/opt/chromium/native-messaging-hosts/ufr.dlogic.chrome.json
fi
\ No newline at end of file
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment