Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[New app]: Google Drive File Stream #480

Closed
1 task done
derik0709 opened this issue Apr 12, 2023 · 2 comments
Closed
1 task done

[New app]: Google Drive File Stream #480

derik0709 opened this issue Apr 12, 2023 · 2 comments
Labels
new application A request for adding an application to the projdct

Comments

@derik0709
Copy link

What is the new application?

This is an enterprise application to sync files stored on Google Drive to a users device. They have a static URL for downloading.

https://dl.google.com/drive-file-stream/GoogleDriveFSSetup.exe

Vendor site

https://support.google.com/drive/answer/7329379?sjid=11325934326792069646-NA

Have you reviewed the list of supported applications?

Does the vendor require a sign-in?

No

@derik0709 derik0709 added the new application A request for adding an application to the projdct label Apr 12, 2023
@DanGough
Copy link
Contributor

DanGough commented May 2, 2023

FYI here's how I implemented it in Nevergreen, using Fiddler to capture the auto updater traffic:

$Response = (Invoke-RestMethod -Uri 'https://update.googleapis.com/service/update2' -Method Post -DisableKeepAlive -Body '<?xml version="1.0" encoding="UTF-8"?><request protocol="3.0" updaterversion="1.3.36.82"><app appid="{6BBAE539-2232-434A-A4E5-9A33560C6283}"><updatecheck/></app></request>').response

$Version = $Response.app.updatecheck.manifest.version

$URL = @($Response.app.updatecheck.urls.url.codebase)[-1] + $Response.app.updatecheck.manifest.packages.package.name

$SHA256 = $Response.app.updatecheck.manifest.packages.package.hash_sha256

@aaronparker
Copy link
Owner

aaronparker commented May 14, 2023

Adding some working code here for later:

$Body = '<?xml version="1.0" encoding="UTF-8"?><request protocol="3.0" updaterversion="1.3.36.82"><app appid="{6BBAE539-2232-434A-A4E5-9A33560C6283}"><updatecheck/></app></request>'
$params = @{
    Uri              = 'https://update.googleapis.com/service/update2'
    Method           = "Post"
    DisableKeepAlive = $true
    Body             = $Body
}
$Response = Invoke-RestMethod @params
[PSCustomObject]@{
    Version = $Response.response.app.updatecheck.manifest.version
    Sha256  = $Response.response.app.updatecheck.manifest.packages.package.hash_sha256
    URI     = "$(@($Response.response.app.updatecheck.urls.url.codebase)[-1])$($Response.app.updatecheck.manifest.packages.package.name)"
}

aaronparker added a commit that referenced this issue May 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new application A request for adding an application to the projdct
Projects
None yet
Development

No branches or pull requests

3 participants