Comments (2)
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
from evergreen.
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)"
}
from evergreen.
Related Issues (20)
- [Feature]: Microsoft ODBC Driver mulitple languages and Additional 'Base Version' attribute HOT 1
- [Feature]: Microsoft OLE DB Driver mulitple languages and Additional 'Base Version' attribute HOT 1
- [Feature]: Microsoft SSMS Additional 'Base Version' attribute HOT 3
- [Bug]: Get-EvergreenApp for AzureCLI does not return 64 bit installer HOT 2
- [Bug]: 7zip not working HOT 7
- [Bug]: GoogleChrome Version in Evergreen is 112 but when you download is it the expected 113 HOT 1
- [Bug]: Can't retrieve a list of Google Chrome Enterprise installs HOT 3
- [Bug]: Google Chrome Returning 410 error HOT 3
- [Bug]: MicrosoftAzureDataStudio - No update feed found for win32-x64 and insider HOT 2
- [Bug]: The Download size for 7zip is incorrect HOT 3
- [Bug]: VLC not currently returning latest version (3.0.21) HOT 3
- [New app]: ControlUp Agent manager HOT 1
- [Bug]: Slack no longer working HOT 1
- [Bug]: Get-EvergreenApp MicrosoftAzureDataStudio is erroring "No update feed found for win32-x64 and Insider." HOT 4
- [New app]: Amazon Corretto 22, 21
- [Bug]: Remove OpenJDK
- [New app]: JGraph DrawIO Desktop HOT 2
- [Bug]: Visual Studio (Community Edition)
- [Feature]: Enforce valid .NET version types in evergreen objects HOT 18
- [New app]: MobaXterm Home Edition
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from evergreen.