This pull request adds support for the Comet browser (an AI-integrated browser from Perplexity) to the maintained apps catalog for both macOS and Windows. It introduces metadata, installation, and uninstallation scripts, as well as versioned definitions for both platforms. **New application support: Comet browser** *Metadata and catalog integration:* - Added `comet.json` metadata files for Homebrew (macOS) and Winget (Windows) in the `inputs` directory, defining identifiers, installer types, and categories. [[1]](diffhunk://#diff-60e2346d602b7538ba08314f7adfdde98ca8e802dd3706c65bb75273fe7bbbd4R1-R8) [[2]](diffhunk://#diff-ecdccc5ed1a1f1e6f2b66439941fcd74419b2706c1df155cb4bc1940abd6bfa7R1-R13) - Updated `apps.json` to include Comet for both `darwin` (macOS) and `windows` platforms with descriptive text. *macOS support:* - Added `outputs/comet/darwin.json` with versioned app definition, install/uninstall queries, download URL, and references to install/uninstall scripts. *Windows support:* - Added `outputs/comet/windows.json` with versioned app definition, install/uninstall queries, download URL, SHA256, and references to install/uninstall scripts. - Added PowerShell scripts for silent installation (`comet_install.ps1`) and uninstallation (`comet_uninstall.ps1`) of Comet, handling machine-wide deployment and proper exit codes. [[1]](diffhunk://#diff-5b9c60857fd2a49958f05124e8744394683297127503578e9b4eaf227470f1f7R1-R31) [[2]](diffhunk://#diff-3433e05da3c0601490c7d90084264d4a793d0feef4211569b4aff884f85116dbR1-R101)
32 lines
747 B
PowerShell
32 lines
747 B
PowerShell
# Learn more about .exe install scripts:
|
|
# http://fleetdm.com/learn-more-about/exe-install-scripts
|
|
#
|
|
# Comet ships a Chromium/Omaha-based machine-scope installer
|
|
# (comet_*_system.exe). Fleet runs as SYSTEM, so it installs machine-wide.
|
|
|
|
$exeFilePath = "${env:INSTALLER_PATH}"
|
|
|
|
try {
|
|
|
|
# Add arguments to install silently machine-wide.
|
|
# --install --silent -> silent machine-scope install
|
|
$processOptions = @{
|
|
FilePath = "$exeFilePath"
|
|
ArgumentList = "--install --silent"
|
|
PassThru = $true
|
|
Wait = $true
|
|
}
|
|
|
|
# Start process and track exit code
|
|
$process = Start-Process @processOptions
|
|
$exitCode = $process.ExitCode
|
|
|
|
# Prints the exit code
|
|
Write-Host "Install exit code: $exitCode"
|
|
Exit $exitCode
|
|
|
|
} catch {
|
|
Write-Host "Error: $_"
|
|
Exit 1
|
|
}
|