mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 17:08:53 +00:00
Update how Cisco Jabber for macOS is versioned (#36461)
This commit is contained in:
parent
6ee59e4997
commit
8df0867707
3 changed files with 13 additions and 9 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"versions": [
|
||||
{
|
||||
"version": "latest",
|
||||
"version": "15.2.0",
|
||||
"queries": {
|
||||
"exists": "SELECT 1 FROM apps WHERE bundle_identifier = 'com.cisco.jabber';"
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue