41 lines
1.6 KiB
PowerShell
41 lines
1.6 KiB
PowerShell
<#
|
|
LXS - Browsers and media (Windows)
|
|
Description: Browsers and media players installed through winget.
|
|
Repo: https://git.hyko.cx/hykocx/lxs
|
|
#>
|
|
|
|
# Load LXS common library (colors, UI helpers, spinner, loggers, guards).
|
|
# Prefers the sibling ..\lib\common.ps1 (repo checkout or installed layout) and
|
|
# only hits the network when this script is run standalone.
|
|
$LxsRawBase = if ($env:LXS_RAW_BASE) { $env:LXS_RAW_BASE } else { 'https://git.hyko.cx/hykocx/lxs/raw/branch/main' }
|
|
if (-not $env:LXS_RAW_PLATFORM_BASE) { $env:LXS_RAW_PLATFORM_BASE = "$LxsRawBase/windows" }
|
|
$LxsLibPath = if ($PSScriptRoot) { Join-Path $PSScriptRoot '..\lib\common.ps1' } else { $null }
|
|
if ($LxsLibPath -and (Test-Path $LxsLibPath)) {
|
|
. $LxsLibPath
|
|
} else {
|
|
try {
|
|
$LxsLibSource = Invoke-RestMethod -Uri "$env:LXS_RAW_PLATFORM_BASE/lib/common.ps1" -UseBasicParsing -ErrorAction Stop
|
|
} catch {
|
|
Write-Error 'Failed to fetch lib/common.ps1'
|
|
exit 1
|
|
}
|
|
. ([scriptblock]::Create($LxsLibSource))
|
|
}
|
|
|
|
$env:LXS_LOG_FILE = Join-Path (Get-LxsTempDir) 'lxs_browsers.log'
|
|
|
|
if (-not (Assert-LxsWindows)) { exit 1 }
|
|
|
|
$LxsBrowserPackages = @(
|
|
@{ Name = 'LibreWolf'; Id = 'LibreWolf.LibreWolf' }
|
|
@{ Name = 'Firefox'; Id = 'Mozilla.Firefox' }
|
|
@{ Name = 'Brave'; Id = 'Brave.Brave' }
|
|
@{ Name = 'Chrome'; Id = 'Google.Chrome' }
|
|
@{ Name = 'VLC'; Id = 'VideoLAN.VLC' }
|
|
@{ Name = 'OBS Studio'; Id = 'OBSProject.OBSStudio' }
|
|
)
|
|
|
|
Invoke-LxsPackageMenu -Title 'BROWSERS & MEDIA' -Packages $LxsBrowserPackages `
|
|
-Note 'LibreWolf is a hardened Firefox fork with telemetry stripped out.' | Out-Null
|
|
exit 0
|