Jump to content

GitHub Version Checker


BravoTaco

Recommended Posts

As title states, this code checks your script version and compares it to your GitHub version. This requires you to have a latest release on GitHub and the versioning of the release will have to be similar to v1.0 or v0.12. Use only numerical characters and a . to add spaces. The script consists of two classes one being VersionChecker which does the main work, and the other being InfoCache which stores the GitHub Username, Project Name, and the current version of the local script. Once you call the boolean method needsUpdated() and fill in the parameters once, you can than call needsUpdated() again without the parameters. The script is very simple, feel free to edit and change it to however you would like. Hope this helps someone out.

  Reveal hidden contents

 

  Reveal hidden contents

 

Edited by BravoTaco
  • Like 3
Link to comment
Share on other sites

  On 8/20/2019 at 9:11 AM, Medusaa said:

Awesome seeing "new" people contribute to the community :) 

Expand  

Been wanting to post more stuff but, as i'm not that good with programming yet, I don't want to give out my bad code practices 😂

  On 8/20/2019 at 1:52 PM, Proton said:

Agreed, thanks BravoTaco <3

Expand  

No problem. Hope it helps you and or someone else out.

Edited by BravoTaco
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...