Skip to content

Instantly share code, notes, and snippets.

@sgnn7
Last active October 7, 2020 15:37
Show Gist options
  • Select an option

  • Save sgnn7/d920cdfded1b933168a9 to your computer and use it in GitHub Desktop.

Select an option

Save sgnn7/d920cdfded1b933168a9 to your computer and use it in GitHub Desktop.
app store
-> com.endlessm.AppManager.Install(appid)
-> com.endlessm.AppManager.Update(appid, allow_deltas)
app manager
| build com.endlessm.AppManager.Transaction object
<- transaction path
app store
| get com.endlessm.AppManager.Transaction properties
| if (Transaction.IsDelta)
| download file at BundleURI into BUNDLEDIR/appid.xdelta
| else
| download file at BundleURI into BUNDLEDIR/appid.bundle
| download file at SignatureURI into BUNDLEDIR/appid.asc
| store BundleHash into BUNDLEDIR/appid.sha256sum
-> com.endlessm.AppManager.Transaction.CompleteTransaction(bundlepath)
app manager
| get files at bundlepath
| execute scripts
<- return boolean for success
app store
| if (update && Transaction.IsDelta && failure)
| repeat process with allow_deltas = false
| if (failure)
| show error
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment