leafo / itchio-app-old

Desktop itch.io client
MIT License
45 stars 6 forks source link

Game downloading #4

Open leafo opened 9 years ago

leafo commented 9 years ago

Game downloading needs to be coded. For the initial release it will be done over HTTP. There should be a simple progress bar. If a download fails, then it must be canceled and started over. Files should be downloaded to QStandardPaths::​writableLocation and a manifest file should be written.

By default the user shouldn't have to pick which file is downloaded. An API call for the game's files is done, then if there is just 1 file that matches the platform it will be downloaded. If there are multiple files for the given platform, or there are no files for the platform then a file can be manually chosen by the user.

To download a given file, an API call is made with the file's ID and an expiring URL is returned.

Games can optionally have install instructions written as text provided by the developer. We could show these after the download completes?

None of these APIs exist yet, I'll post them here with docs as they become available.

joseccandido commented 9 years ago

Needs an api call to get install instructions.