github.com/pojntfx/hydrapp/hydrapp@v0.0.0-20240516002902-d08759d6ca9f/pkg/browser/types.go (about)

     1  package browser
     2  
     3  const (
     4  	browserTypeChromium = "chromium"
     5  	browserTypeFirefox  = "firefox"
     6  	browserTypeEpiphany = "epiphany"
     7  	browserTypeLynx     = "lynx"
     8  
     9  	browserTypeDummy = "dummy"
    10  )
    11  
    12  var ChromiumLikeBrowsers = Browser{
    13  	Name: browserTypeChromium,
    14  	LinuxBinaries: [][]string{
    15  		{"google-chrome"},
    16  		{"google-chrome-stable"},
    17  		{"google-chrome-beta"},
    18  		{"google-chrome-unstable"},
    19  		{"brave-browser"},
    20  		{"brave-browser-stable"},
    21  		{"brave-browser-beta"},
    22  		{"brave-browser-nightly"},
    23  		{"microsoft-edge"},
    24  		{"microsoft-edge-beta"},
    25  		{"microsoft-edge-dev"},
    26  		{"microsoft-edge-canary"},
    27  		{"ungoogled-chromium"},
    28  		{"chromium-browser"},
    29  		{"chromium"},
    30  	},
    31  	Flatpaks: [][]string{
    32  		{"com.google.Chrome"},
    33  		{"com.google.ChromeDev"},
    34  		{"com.brave.Browser"},
    35  		{"com.microsoft.Edge"},
    36  		{"org.chromium.Chromium"},
    37  		{"com.github.Eloston.UngoogledChromium"},
    38  	},
    39  	WindowsBinaries: [][]string{
    40  		{"Google", "Chrome", "Application", "chrome.exe"},
    41  		{"Google", "Chrome Beta", "Application", "chrome.exe"},
    42  		{"Google", "Chrome SxS", "Application", "chrome.exe"},
    43  		{"BraveSoftware", "Brave-Browser", "Application", "brave.exe"},
    44  		{"BraveSoftware", "Brave-Browser-Beta", "Application", "brave.exe"},
    45  		{"BraveSoftware", "Brave-Browser-Nightly", "Application", "brave.exe"},
    46  		{"Microsoft", "Edge", "Application", "msedge.exe"},
    47  		{"Microsoft", "Edge Beta", "Application", "msedge.exe"},
    48  		{"Microsoft", "Edge Dev", "Application", "msedge.exe"},
    49  		{"Microsoft", "Edge Canary", "Application", "msedge.exe"},
    50  		{"Chromium", "Application", "chrome.exe"},
    51  	},
    52  	MacOSBinaries: [][]string{
    53  		{"Google Chrome.app", "Contents", "MacOS", "Google Chrome"},
    54  		{"Google Chrome Beta.app", "Contents", "MacOS", "Google Chrome Beta"},
    55  		{"Google Chrome Canary.app", "Contents", "MacOS", "Google Chrome Canary"},
    56  		{"Brave Browser.app", "Contents", "MacOS", "Brave Browser"},
    57  		{"Brave Browser Beta.app", "Contents", "MacOS", "Brave Browser Beta"},
    58  		{"Brave Browser Nightly.app", "Contents", "MacOS", "Brave Browser Nightly"},
    59  		{"Microsoft Edge.app", "Contents", "MacOS", "Microsoft Edge"},
    60  		{"Microsoft Edge Beta.app", "Contents", "MacOS", "Microsoft Edge Beta"},
    61  		{"Microsoft Edge Dev.app", "Contents", "MacOS", "Microsoft Edge Dev"},
    62  		{"Microsoft Edge Canary.app", "Contents", "MacOS", "Microsoft Edge Canary"},
    63  		{"Chromium.app", "Contents", "MacOS", "Chromium"},
    64  	},
    65  }
    66  
    67  var FirefoxLikeBrowsers = Browser{
    68  	Name: browserTypeFirefox,
    69  	LinuxBinaries: [][]string{
    70  		{"firefox"},
    71  		{"firefox-esr"},
    72  	},
    73  	Flatpaks: [][]string{
    74  		{"org.mozilla.firefox"},
    75  	},
    76  	WindowsBinaries: [][]string{
    77  		{"Mozilla Firefox", "firefox.exe"},
    78  		{"Firefox Nightly", "firefox.exe"},
    79  	},
    80  	MacOSBinaries: [][]string{
    81  		{"Firefox.app", "Contents", "MacOS", "firefox"},
    82  		{"Firefox Nightly.app", "Contents", "MacOS", "firefox"},
    83  	},
    84  }
    85  
    86  var EpiphanyLikeBrowsers = Browser{
    87  	Name: browserTypeEpiphany,
    88  	LinuxBinaries: [][]string{
    89  		{"epiphany"},
    90  	},
    91  	Flatpaks: [][]string{
    92  		{"org.gnome.Epiphany"},
    93  	},
    94  	WindowsBinaries: [][]string{},
    95  	MacOSBinaries:   [][]string{},
    96  }
    97  
    98  var LynxLikeBrowsers = Browser{
    99  	Name: browserTypeLynx,
   100  	LinuxBinaries: [][]string{
   101  		{"lynx"},
   102  	},
   103  	Flatpaks:        [][]string{},
   104  	WindowsBinaries: [][]string{},
   105  	MacOSBinaries:   [][]string{},
   106  }