Change build version format back (#20)

This commit is contained in:
Xiaonan Shen 2021-01-07 19:41:05 +08:00 committed by GitHub
parent 2647f8540e
commit fdd15bf801
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View File

@ -1 +1 @@
v1.5.4
1.5.4

View File

@ -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

View File

@ -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])