mirror of
https://github.com/fleetdm/fleet
synced 2026-05-24 09:28:54 +00:00
Automated ingestion of latest Fleet-maintained app data. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Chores** * Updated Docker Desktop application support to version 4.71.0 for macOS and Windows platforms. * Updated Postman application support to version 12.8.0 for macOS and Windows platforms. * Updated Rider application support to version 2026.1.1 for macOS platform. <!-- end of auto-generated comment: release notes by coderabbit.ai --> Co-authored-by: mostlikelee <16102903+mostlikelee@users.noreply.github.com>
22 lines
3.1 KiB
JSON
22 lines
3.1 KiB
JSON
{
|
|
"versions": [
|
|
{
|
|
"version": "4.71.0",
|
|
"queries": {
|
|
"exists": "SELECT 1 FROM programs WHERE name = 'Docker Desktop' AND publisher = 'Docker Inc.';",
|
|
"patched": "SELECT 1 WHERE NOT EXISTS (SELECT 1 FROM programs WHERE name = 'Docker Desktop' AND publisher = 'Docker Inc.' AND version_compare(version, '4.71.0') < 0);"
|
|
},
|
|
"installer_url": "https://desktop.docker.com/win/main/amd64/225177/Docker%20Desktop%20Installer.exe",
|
|
"install_script_ref": "f938db79",
|
|
"uninstall_script_ref": "000be0a3",
|
|
"sha256": "72f5ae091b90ffda86bbe721b484342b34e347586111e049e7c157d3e37d7e27",
|
|
"default_categories": [
|
|
"Developer tools"
|
|
]
|
|
}
|
|
],
|
|
"refs": {
|
|
"000be0a3": "# Define acceptable/expected exit codes\n$ExpectedExitCodes = @(0, 19)\n\n# Uninstall Registry Key\n$machineKey = 'HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\Docker Desktop'\n\n# Initialize exit code\n$exitCode = 0\n\ntry {\n $key = Get-ItemProperty -Path $machineKey -ErrorAction Stop\n\n # Get the uninstall command. Some uninstallers do not include 'QuietUninstallString'\n $uninstallCommand = if ($key.QuietUninstallString) {\n $key.QuietUninstallString\n } else {\n $key.UninstallString\n }\n\n # The expected uninstall command value is \"C:\\Program Files\\Docker\\Docker\\Docker Desktop Installer.exe\" \"uninstall\"\n $splitArgs = $uninstallCommand.Split('\"')\n if ($splitArgs.Length -ne 5) {\n Throw \"Unexpected uninstall command. Please update the uninstall script.`nUninstall command: $uninstallCommand\"\n }\n $uninstallCommand = $splitArgs[1]\n $uninstallArgs = $splitArgs[3]\n\n Write-Host \"Uninstall command: $uninstallCommand\"\n Write-Host \"Uninstall args: $uninstallArgs\"\n\n $processOptions = @{\n FilePath = $uninstallCommand\n PassThru = $true\n Wait = $true\n }\n if ($uninstallArgs -ne '') {\n $processOptions.ArgumentList = \"$uninstallArgs --quiet\"\n } else {\n $processOptions.ArgumentList = \"--quiet\"\n }\n\n # Start uninstall process\n $process = Start-Process @processOptions\n $exitCode = $process.ExitCode\n Write-Host \"Uninstall exit code: $exitCode\"\n\n} catch {\n Write-Host \"Error: $_\"\n $exitCode = 1\n}\n\n# Treat acceptable exit codes as success\nif ($ExpectedExitCodes -contains $exitCode) {\n Exit 0\n} else {\n Exit $exitCode\n}\n",
|
|
"f938db79": "# 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\n# Add argument to install silently\n# Argument to make install silent depends on installer,\n# each installer might use different argument (usually it's \"/S\" or \"/s\")\n$processOptions = @{\n FilePath = \"$exeFilePath\"\n ArgumentList = \"install --quiet\"\n PassThru = $true\n Wait = $true\n}\n \n# Start process and track exit code\n$process = Start-Process @processOptions\n$exitCode = $process.ExitCode\n\n# Prints the exit code\nWrite-Host \"Install exit code: $exitCode\"\nExit $exitCode\n\n} catch {\n Write-Host \"Error: $_\"\n Exit 1\n}\n"
|
|
}
|
|
}
|