Skip to content

Commit 77499c1

Browse files
sprytnykfmoessbauer
authored andcommitted
chore: add Brave browser support
[Felix: remove emoji from commit title, fold in Makefile fixes, also remove linux-entra-sso script on brave uninstall] Signed-off-by: Vladyslav Krylasov <vladyslav.krylasov@gmail.com> Signed-off-by: Felix Moessbauer <felix.moessbauer@siemens.com>
1 parent d1635ea commit 77499c1

File tree

1 file changed

+18
-3
lines changed

1 file changed

+18
-3
lines changed

Makefile

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,16 @@ local-install-chrome:
167167
install -m 0755 linux-entra-sso.py ~/.config/google-chrome
168168
${Q}sed -i $(UPDATE_VERSION_PY) ~/.config/google-chrome/linux-entra-sso.py
169169

170-
local-install: local-install-firefox local-install-chrome
170+
local-install-brave:
171+
install -d ~/.config/BraveSoftware/Brave-Browser/NativeMessagingHosts
172+
install -m 0644 platform/chrome/linux_entra_sso.json ~/.config/BraveSoftware/Brave-Browser/NativeMessagingHosts
173+
${Q}sed -i 's|/usr/local/lib/linux-entra-sso/|'$(HOME)'/.config/BraveSoftware/Brave-Browser/|' ~/.config/BraveSoftware/Brave-Browser/NativeMessagingHosts/linux_entra_sso.json
174+
# compute extension id and and grant permission
175+
${Q}sed -i 's|{extension_id}|$(CHROME_EXT_ID)|' ~/.config/BraveSoftware/Brave-Browser/NativeMessagingHosts/linux_entra_sso.json
176+
install -m 0755 linux-entra-sso.py ~/.config/BraveSoftware/Brave-Browser
177+
${Q}sed -i $(UPDATE_VERSION_PY) ~/.config/BraveSoftware/Brave-Browser/linux-entra-sso.py
178+
179+
local-install: local-install-firefox local-install-chrome local-install-brave
171180

172181
install:
173182
${Q}[ -z "$(python3_bin)" ] && { echo "python3 not found. Please set 'python3_bin'."; exit 1; } || true
@@ -207,6 +216,12 @@ local-uninstall-chrome:
207216
rm -f ~/.config/google-chrome/NativeMessagingHosts/linux_entra_sso.json ~/.config/google-chrome/linux-entra-sso.py
208217
rm -f ~/.config/chromium/NativeMessagingHosts/linux_entra_sso.json
209218

210-
local-uninstall: local-uninstall-firefox local-uninstall-chrome
219+
local-uninstall-brave:
220+
rm -f ~/.config/BraveSoftware/Brave-Browser/NativeMessagingHosts/linux_entra_sso.json ~/.config/BraveSoftware/Brave-Browser/linux-entra-sso.py
221+
rm -f ~/.config/BraveSoftware/Brave-Browser/NativeMessagingHosts/linux-entra-sso.py
222+
223+
local-uninstall: local-uninstall-firefox local-uninstall-chrome local-uninstall-brave
211224

212-
.PHONY: clean release local-install-firefox local-install-chrome local-install install local-uninstall-firefox local-uninstall-chrome local-uninstall uninstall deb deb_clean
225+
.PHONY: clean release deb deb_clean
226+
.PHONY: local-install-firefox local-install-chrome local-install-brave local-install install
227+
.PHONY: local-uninstall-firefox local-uninstall-chrome local-uninstall-brave local-uninstall uninstall

0 commit comments

Comments
 (0)