mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 17:08:53 +00:00
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:
parent
068ffeaf40
commit
68a446d347
3 changed files with 1 additions and 15 deletions
|
|
@ -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},
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"versions": [
|
||||
{
|
||||
"version": "latest",
|
||||
"version": "25.184.0921.0004",
|
||||
"queries": {
|
||||
"exists": "SELECT 1 FROM apps WHERE bundle_identifier = 'com.microsoft.OneDrive';"
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue