diff --git a/build/VERSION b/build/VERSION index b4e1736..63ebd3f 100644 --- a/build/VERSION +++ b/build/VERSION @@ -1 +1 @@ -v1.5.4 \ No newline at end of file +1.5.4 \ No newline at end of file diff --git a/build/build.sh b/build/build.sh index 3182fdf..05903bf 100644 --- a/build/build.sh +++ b/build/build.sh @@ -7,7 +7,7 @@ VERSION=`cat VERSION` # Clone new code git clone https://github.com/ProtonMail/proton-bridge.git cd proton-bridge -git checkout $VERSION +git checkout v$VERSION # Build make build-nogui diff --git a/update-check.py b/update-check.py index b1127f6..e8d5381 100644 --- a/update-check.py +++ b/update-check.py @@ -59,6 +59,6 @@ response = requests.get( headers={"Accept": "application/vnd.github.v3+json"}, ) tags = json.loads(response.content) -version_re = re.compile("v(\d+)\.(\d+)\.(\d+)") -releases = [tag["name"] for tag in tags if version_re.match(tag["name"])] +version_re = re.compile("v\d+\.\d+\.\d+") +releases = [tag["name"][1:] for tag in tags if version_re.match(tag["name"])] check_version("build", releases[0])