Update how OneDrive for macOS is versioned (#36460)

- Changing how OneDrive is versioned to use the version provided by
Homebrew.
This commit is contained in:
Allen Houchins 2025-12-03 13:48:49 -06:00 committed by GitHub
parent 068ffeaf40
commit 68a446d347
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 1 additions and 15 deletions

View file

@ -17,7 +17,6 @@ var Funcs = map[string][]func(*maintained_apps.FMAManifestApp) (*maintained_apps
"cisco-jabber/darwin": {CiscoJabberVersionTransformer},
"parallels/darwin": {ParallelsVersionShortener},
"github/darwin": {GitHubDesktopVersionShortener},
"onedrive/darwin": {OneDriveVersionTransformer},
"camtasia/darwin": {CamtasiaVersionTransformer},
}

View file

@ -1,13 +0,0 @@
package externalrefs
import (
maintained_apps "github.com/fleetdm/fleet/v4/ee/maintained-apps"
)
// OneDriveVersionTransformer sets the version to "latest" so that the validation
// extracts the actual app version from the installed app, which matches what osquery reports.
// OneDrive auto-updates, so the installer URL version may not match the installed version.
func OneDriveVersionTransformer(app *maintained_apps.FMAManifestApp) (*maintained_apps.FMAManifestApp, error) {
app.Version = "latest"
return app, nil
}

View file

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