diff --git a/scripts/update-version.pl b/scripts/update-version.pl index f86cf1a..a733641 100755 --- a/scripts/update-version.pl +++ b/scripts/update-version.pl @@ -4,6 +4,7 @@ BEGIN $version = `curl -s https://api.github.com/repos/xmake-io/xmake/releases/latest | jq -r .tag_name`; chomp $version; + $version =~ s/^v//; } s/(?<=version = ")[^"]+/$version/;