Update how Cisco Jabber for macOS is versioned (#36461)

This commit is contained in:
Allen Houchins 2025-12-03 17:08:59 -06:00 committed by GitHub
parent 6ee59e4997
commit 8df0867707
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 13 additions and 9 deletions

View file

@ -0,0 +1,12 @@
package externalrefs
import (
maintained_apps "github.com/fleetdm/fleet/v4/ee/maintained-apps"
)
// CiscoJabberVersionTransformer sets the version to "15.2.0" which matches what osquery reports.
// Homebrew reports a build number (e.g., "20251027035315") instead of the app version (e.g., "15.2.0").
func CiscoJabberVersionTransformer(app *maintained_apps.FMAManifestApp) (*maintained_apps.FMAManifestApp, error) {
app.Version = "15.2.0"
return app, nil
}

View file

@ -28,14 +28,6 @@ func ChromePKGInstaller(app *maintained_apps.FMAManifestApp) (*maintained_apps.F
return app, nil
}
// CiscoJabberVersionTransformer sets the version to "latest" so that the validation
// extracts the actual app version from the PKG file, which matches what osquery reports.
// Homebrew reports a build number (e.g., "20251027035315") instead of the app version (e.g., "15.1.2").
func CiscoJabberVersionTransformer(app *maintained_apps.FMAManifestApp) (*maintained_apps.FMAManifestApp, error) {
app.Version = "latest"
return app, nil
}
func EnrichManifest(app *maintained_apps.FMAManifestApp) {
// Enrich the app manifest with additional metadata
if enrichers, ok := Funcs[app.Slug]; ok {

View file

@ -1,7 +1,7 @@
{
"versions": [
{
"version": "latest",
"version": "15.2.0",
"queries": {
"exists": "SELECT 1 FROM apps WHERE bundle_identifier = 'com.cisco.jabber';"
},