Skip to content

Commit

Permalink
2.19: Fixed latest release detection
Browse files Browse the repository at this point in the history
github changed the page csgosl scrapes to find the latest
version. Updated to support both the old and new page
format.
  • Loading branch information
lenosisnickerboa committed Aug 21, 2023
1 parent ba166c6 commit 1feb319
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/latest_release.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ proc GetLatestRelease {} {
Trace "Found latest release $version"
return $version
}
if { [regexp {.*\/github\.com\/lenosisnickerboa\/csgosl\/releases\/tag\/v(.*)\".*} $line -> version] } {
Trace "Found latest release $version"
return $version
}
}
return ""
}
Expand Down
2 changes: 1 addition & 1 deletion src/version.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
# The next line is executed by /bin/sh, but not tcl \
exec wish "$0" ${1+"$@"}

set version "2.18"
set version "2.19"

0 comments on commit 1feb319

Please sign in to comment.