RatS icon indicating copy to clipboard operation
RatS copied to clipboard

Implement version check on startup

Open StegSchreck opened this issue 8 years ago • 6 comments

  • check the latest release under https://github.com/StegSchreck/RatS/releases/latest
  • notify user via WARN log

StegSchreck avatar Jan 22 '18 18:01 StegSchreck

Hey, can I work on this as a starter?

anurag-rai avatar Oct 02 '18 06:10 anurag-rai

The latest version can be fetched from the tags of the api. How can we know the current version that the user is using?

anurag-rai avatar Oct 02 '18 07:10 anurag-rai

Hey. Sure, glad to have some help. I was thinking about a file in the repository which will be written by Travis when a tag is pushed and the build is successful.

StegSchreck avatar Oct 02 '18 09:10 StegSchreck

Ok, so maybe we can add small bash commands in after_script of travis.yml that creates/appends to a file some version tag. But where will this version tag come from in the first place?

anurag-rai avatar Oct 02 '18 12:10 anurag-rai

I think the latest git tag would make most sense. e.g.

touch version
echo `git describe --tags --always` | awk '{split($0,a,"-"); print a[1]}' > version

StegSchreck avatar Oct 02 '18 12:10 StegSchreck

for the backwards compatibility I would suggest to assume the local copy is outdated, when no version file is present.

StegSchreck avatar Oct 02 '18 13:10 StegSchreck