Zijkhal / YololFleetsGUI

MIT License
2 stars 0 forks source link

Auto Download #4

Open martindevans opened 3 years ago

martindevans commented 3 years ago

Consider adding automatic downloading of the simulator and player to ensure they are always up to date.

To fetch the sim, for example:

  1. Download this URL: https://api.github.com/repos/martindevans/Yolol-SpaceShipCombatSimulator/releases/latest
  2. Check if id is different to the id of the version already downloaded
  3. If so, find the item in the assets array with the name SpaceShipCombatSimulator.Win.zip and download it.

The process for the player would be similar but the name in the assets list would be SpaceCombatPlayer.Win.zip instead.

martindevans commented 3 years ago

If you're interested in having this feature but don't want to work on it yourself I might be willing to work on a PR for it :)

Zijkhal commented 3 years ago

That's a good idea, thank you!

I'd like to do this myself so I can learn :-)