add chromium support for macOS

pull/83/head
moond4rk 4 years ago committed by ᴍᴏᴏɴD4ʀᴋ
parent f320eb3e11
commit 82cc78c617
  1. 8
      core/browser_darwin.go

@ -12,6 +12,7 @@ import (
const ( const (
chromeProfilePath = "/Users/*/Library/Application Support/Google/Chrome/*/" chromeProfilePath = "/Users/*/Library/Application Support/Google/Chrome/*/"
chromeBetaProfilePath = "/Users/*/Library/Application Support/Google/Chrome Beta/*/" chromeBetaProfilePath = "/Users/*/Library/Application Support/Google/Chrome Beta/*/"
chromiumProfilePath = "/Users/*/Library/Application Support/Chromium/*/"
edgeProfilePath = "/Users/*/Library/Application Support/Microsoft Edge/*/" edgeProfilePath = "/Users/*/Library/Application Support/Microsoft Edge/*/"
fireFoxProfilePath = "/Users/*/Library/Application Support/Firefox/Profiles/*.default-release/" fireFoxProfilePath = "/Users/*/Library/Application Support/Firefox/Profiles/*.default-release/"
braveProfilePath = "/Users/*/Library/Application Support/BraveSoftware/Brave-Browser/*/" braveProfilePath = "/Users/*/Library/Application Support/BraveSoftware/Brave-Browser/*/"
@ -23,6 +24,7 @@ const (
const ( const (
chromeStorageName = "Chrome" chromeStorageName = "Chrome"
chromeBetaStorageName = "Chrome" chromeBetaStorageName = "Chrome"
chromiumStorageName = "Chromium"
edgeStorageName = "Microsoft Edge" edgeStorageName = "Microsoft Edge"
braveStorageName = "Brave" braveStorageName = "Brave"
operaStorageName = "Opera" operaStorageName = "Opera"
@ -48,6 +50,12 @@ var (
Storage: chromeStorageName, Storage: chromeStorageName,
New: NewChromium, New: NewChromium,
}, },
"chromium": {
ProfilePath: chromiumProfilePath,
Name: chromiumName,
Storage: chromiumStorageName,
New: NewChromium,
},
"edge": { "edge": {
ProfilePath: edgeProfilePath, ProfilePath: edgeProfilePath,
Name: edgeName, Name: edgeName,

Loading…
Cancel
Save