jakubg1 / OpenSMCE

Game engine which allows creating a broad range of marble popper games.
MIT License
14 stars 11 forks source link

Implement an update checker #17

Closed jakubg1 closed 1 year ago

jakubg1 commented 3 years ago

Things that will be needed to make it work:

  1. This command: curl https://api.github.com/repos/jakubg1/OpenSMCE/tags executed in Command Prompt will result in a list of versions being displayed.
    • Get the first element's name field in order to obtain the latest released version.
    • Compare it with the software version.
    • If it doesn't match, prompt that there's an update available.
  2. Make curl work on the engine.
    • This is still to be worked out yet.
jakubg1 commented 3 years ago

CURL will not work in the engine.

Furthermore:

  1. The only way to get a latest release is to use GitHub REST API.
  2. GitHub REST API supports only HTTPS requests, not HTTP.
  3. LOVE2D does not support HTTPS by any means: https://love2d.org/forums/viewtopic.php?f=4&t=85389
  4. This means that obtaining the latest release data is impossible in LOVE2D.
  5. This means that making an update checker in this engine, with its current state, is impossible.

This feature is impossible. Closed.

jakubg1 commented 3 years ago

Since the Discord Rich Presence is using DLL libraries, there might be a way to access GitHub release lists by using similar DLL files.

jakubg1 commented 3 years ago

LOVE 12.0 may help with implementation: https://love2d.org/forums/viewtopic.php?f=3&t=90248#p238350

jakubg1 commented 1 year ago

Partially implemented in https://github.com/jakubg1/OpenSMCE/commit/ad6e7f5c68514c1c48cdb17aa02af21d0347d7fb

jakubg1 commented 1 year ago

Fully implemented in https://github.com/jakubg1/OpenSMCE/commit/bc1106c2f6a58805b6b66feea55369465aab9f47 🥳