Version check and upgrade prompt.

This commit is contained in:
2021-09-26 21:13:33 +09:30
parent 648b9ad886
commit 7b9620631e
6 changed files with 78 additions and 12 deletions

View File

@@ -7,7 +7,8 @@ open my $fh, "<", "main.go" || die $!;
my $version;
while (<$fh>) {
$version = $1 if /^const\s+currentVersion.*?"(v[\d\.]+)"/;
# CurrentVersion: "v0.04"
$version = $1 if /CurrentVersion:\s*"(v[\d\.]+)"/;
}
close $fh;