diff --git a/ee/server/service/maintained_apps.go b/ee/server/service/maintained_apps.go index c12dc33f22..e04f51caa6 100644 --- a/ee/server/service/maintained_apps.go +++ b/ee/server/service/maintained_apps.go @@ -115,9 +115,18 @@ func (svc *Service) AddFleetMaintainedApp( maintainedAppID = nil // don't set app as maintained if scripts have been modified } + // For platforms other than macOS, installer name has to match what we see in software inventory, + // so we have the UniqueIdentifier field to indicate what that should be (independent of the name we + // display when listing the FMA). For macOS, unique identifier is bundle name, and we use bundle + // identifier to link installers with inventory, so we set the name to the FMA's display name instead. + appName := app.UniqueIdentifier + if app.Platform == "darwin" || appName == "" { + appName = app.Name + } + payload := &fleet.UploadSoftwareInstallerPayload{ InstallerFile: installerTFR, - Title: app.Name, + Title: appName, UserID: vc.UserID(), TeamID: teamID, Version: app.Version,