omaha: add helper method for computing package metadata
This commit is contained in:
parent
f208691b12
commit
5543f86194
4 changed files with 267 additions and 9 deletions
|
@ -88,7 +88,7 @@ func ExampleNewResponse() {
|
|||
u.AddURL("http://localhost/updates")
|
||||
m := u.AddManifest("9999.0.0")
|
||||
k := m.AddPackage()
|
||||
k.Hash = "+LXvjiaPkeYDLHoNKlf9qbJwvnk="
|
||||
k.Sha1 = "+LXvjiaPkeYDLHoNKlf9qbJwvnk="
|
||||
k.Name = "update.gz"
|
||||
k.Size = 67546213
|
||||
k.Required = true
|
||||
|
@ -118,7 +118,7 @@ func ExampleNewResponse() {
|
|||
// </urls>
|
||||
// <manifest version="9999.0.0">
|
||||
// <packages>
|
||||
// <package hash="+LXvjiaPkeYDLHoNKlf9qbJwvnk=" name="update.gz" size="67546213" required="true"></package>
|
||||
// <package name="update.gz" hash="+LXvjiaPkeYDLHoNKlf9qbJwvnk=" size="67546213" required="true"></package>
|
||||
// </packages>
|
||||
// <actions>
|
||||
// <action event="postinstall" DisplayVersion="9999.0.0" sha256="0VAlQW3RE99SGtSB5R4m08antAHO8XDoBMKDyxQT/Mg=" IsDeltaPayload="true" DisablePayloadBackoff="true"></action>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue