fleet/ee/maintained-apps/outputs/linear/windows.json
Allen Houchins 3d067afb47
Add Linear as a Windows FMA (#43521)
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
2026-04-14 09:57:23 -05:00

22 lines
4.1 KiB
JSON

{
"versions": [
{
"version": "1.28.13",
"queries": {
"exists": "SELECT 1 FROM programs WHERE name LIKE 'Linear %' AND publisher = 'Linear Orbit, Inc.';",
"patched": "SELECT 1 WHERE NOT EXISTS (SELECT 1 FROM programs WHERE name LIKE 'Linear %' AND publisher = 'Linear Orbit, Inc.' AND version_compare(version, '1.28.13') < 0);"
},
"installer_url": "https://download.todesktop.com/200315glz2793v6/Linear%20Setup%201.28.13%20-%20Build%20260318pho1bttxr-x64.exe",
"install_script_ref": "166c7345",
"uninstall_script_ref": "b1906016",
"sha256": "6279df1ceab3d4c66ff9185b8a3bb121137d52e0abae80db5a0b9708d0eb2352",
"default_categories": [
"Productivity"
]
}
],
"refs": {
"166c7345": "# Learn more about .exe install scripts:\n# http://fleetdm.com/learn-more-about/exe-install-scripts\n\n$exeFilePath = \"${env:INSTALLER_PATH}\"\n\ntry {\n # Linear uses a Nullsoft installer:\n # - /S for silent installation\n # - /allusers for machine-scope installs\n $processOptions = @{\n FilePath = \"$exeFilePath\"\n ArgumentList = \"/S /allusers\"\n PassThru = $true\n Wait = $true\n }\n\n $process = Start-Process @processOptions\n $exitCode = $process.ExitCode\n\n Write-Host \"Install exit code: $exitCode\"\n Exit $exitCode\n}\ncatch {\n Write-Host \"Error: $_\"\n Exit 1\n}\n",
"b1906016": "# Attempts to locate Linear's uninstaller from registry and execute it silently\n\n$displayName = \"Linear\"\n$productCode = \"e614e7b4-b4f2-531a-be3f-ebb7fc898755\"\n\n$paths = @(\n 'HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall',\n 'HKLM:\\SOFTWARE\\WOW6432Node\\Microsoft\\Windows\\CurrentVersion\\Uninstall'\n)\n\n$uninstall = $null\n\nforeach ($p in $paths) {\n $codeCandidates = @(\n \"$p\\$productCode\",\n \"$p\\{$productCode}\"\n )\n\n foreach ($candidate in $codeCandidates) {\n if (Test-Path $candidate) {\n $uninstall = Get-ItemProperty -Path $candidate -ErrorAction SilentlyContinue\n if ($uninstall) {\n break\n }\n }\n }\n\n if ($uninstall) {\n break\n }\n\n $items = Get-ItemProperty \"$p\\*\" -ErrorAction SilentlyContinue | Where-Object {\n $_.DisplayName -and ($_.DisplayName -eq $displayName -or $_.DisplayName -like \"$displayName*\")\n }\n\n if ($items) {\n $uninstall = $items | Select-Object -First 1\n break\n }\n}\n\nif (-not $uninstall) {\n Write-Host \"Uninstall entry not found\"\n Exit 0\n}\n\n$uninstallString = if ($uninstall.QuietUninstallString) {\n $uninstall.QuietUninstallString\n}\nelse {\n $uninstall.UninstallString\n}\n\nif (-not $uninstallString) {\n Write-Host \"Uninstall command not found\"\n Exit 0\n}\n\n# Stop the app before uninstalling.\nStop-Process -Name \"Linear\" -Force -ErrorAction SilentlyContinue\n\n$exePath = \"\"\n$arguments = \"\"\n\nif ($uninstallString -match '^\"([^\"]+)\"(.*)') {\n $exePath = $matches[1]\n $arguments = $matches[2].Trim()\n}\nelseif ($uninstallString -match '^([^\\s]+)(.*)') {\n $exePath = $matches[1]\n $arguments = $matches[2].Trim()\n}\nelse {\n Write-Host \"Error: Could not parse uninstall string: $uninstallString\"\n Exit 1\n}\n\n$argumentList = @()\nif ($arguments -ne '') {\n $argumentList += $arguments -split '\\s+'\n}\n\n# NSIS uninstallers require /S for silent mode.\nif ($argumentList -notcontains \"/S\" -and $arguments -notmatch '\\b/S\\b') {\n $argumentList += \"/S\"\n}\n\nWrite-Host \"Uninstall executable: $exePath\"\nWrite-Host \"Uninstall arguments: $($argumentList -join ' ')\"\n\ntry {\n $processOptions = @{\n FilePath = $exePath\n NoNewWindow = $true\n PassThru = $true\n Wait = $true\n }\n\n if ($argumentList.Count -gt 0) {\n $processOptions.ArgumentList = $argumentList\n }\n\n $process = Start-Process @processOptions\n $exitCode = $process.ExitCode\n\n Write-Host \"Uninstall exit code: $exitCode\"\n Exit $exitCode\n}\ncatch {\n Write-Host \"Error running uninstaller: $_\"\n Exit 1\n}\n"
}
}