mirror of
https://github.com/fleetdm/fleet
synced 2026-05-24 09:28:54 +00:00
Add Windows support for Linear: new winget input (ee/maintained-apps/inputs/winget/linear.json) with installer metadata and category, plus install/uninstall PowerShell scripts. Add output metadata (ee/maintained-apps/outputs/linear/windows.json) including a version entry, installer URL, sha256 and script refs, and register the app in apps.json. Update frontend icon component to reference a new PNG and add the image asset. <!-- Add the related story/sub-task/bug number, like Resolves #123, or remove if NA --> **Related issue:** Resolves #43501
26 lines
627 B
PowerShell
26 lines
627 B
PowerShell
# Learn more about .exe install scripts:
|
|
# http://fleetdm.com/learn-more-about/exe-install-scripts
|
|
|
|
$exeFilePath = "${env:INSTALLER_PATH}"
|
|
|
|
try {
|
|
# Linear uses a Nullsoft installer:
|
|
# - /S for silent installation
|
|
# - /allusers for machine-scope installs
|
|
$processOptions = @{
|
|
FilePath = "$exeFilePath"
|
|
ArgumentList = "/S /allusers"
|
|
PassThru = $true
|
|
Wait = $true
|
|
}
|
|
|
|
$process = Start-Process @processOptions
|
|
$exitCode = $process.ExitCode
|
|
|
|
Write-Host "Install exit code: $exitCode"
|
|
Exit $exitCode
|
|
}
|
|
catch {
|
|
Write-Host "Error: $_"
|
|
Exit 1
|
|
}
|