Skip to content

Include notification of available update for command line users #17

Description

@nilshoffmann

While Skyline users will receive a visual cue that an updated version of LipidCreator is available from the ToolStore, users of the standalone version will not receive any notification at the moment.
It would be great if we could either check GitHub's releases API

Using a GET request with the HTTP Header Accept=application/json, the endpoint https://github.com/lifs-tools/lipidcreator/releases/latest returns

{
  "id": 48720087,
  "tag_name": "787",
  "update_url": "/lifs-tools/lipidcreator/releases/tag/787",
  "update_authenticity_token": "JLhrOeswHJxqD5oNBOh5bdu7UsoLtb7Z35M3Rdi5QFozpBeToO0UdC2PDeYHEYPTV59Onp8TEJvJNo3gzOqI4Q==",
  "delete_url": "/lifs-tools/lipidcreator/releases/tag/787",
  "delete_authenticity_token": "l6icnoZAaE83n8Km2Ka71vJPT2veQjT+KxbMSfoi5GU9qlmN5zgj/KOUWNBHt6aSNq78Dcl/OVBPwPSqhkn0KQ==",
  "edit_url": "/lifs-tools/lipidcreator/releases/edit/787"
}

Since our build numbers are strictly increasing, this can be checked against LipidCreator's internal build number. If the latest release number is greater, an update is available.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions