mirror of
https://github.com/zotero/zotero.git
synced 2026-08-28 05:25:31 +00:00
Fix changelog URL generation for two-digit major versions
Some checks are pending
Some checks are pending
The short version was derived from the first three characters of the version string, so 10.0 produced a detailsURL of "10._changelog".
This commit is contained in:
parent
5a6c9245f0
commit
5757396197
2 changed files with 3 additions and 2 deletions
|
|
@ -4,6 +4,7 @@ Update a builds manifest with info on a given build
|
|||
"""
|
||||
import argparse
|
||||
import os
|
||||
import re
|
||||
import sys
|
||||
import shutil
|
||||
import json
|
||||
|
|
@ -25,7 +26,7 @@ def main():
|
|||
try:
|
||||
file = args.file
|
||||
version = args.version
|
||||
short_version = version[0:3]
|
||||
short_version = re.match(r'\d+\.\d+', version).group(0)
|
||||
|
||||
# Back up JSON file
|
||||
shutil.copy2(file, file + '.bak')
|
||||
|
|
|
|||
|
|
@ -144,7 +144,7 @@ chmod g+ws "$TEMP_DIR/version_info"
|
|||
cp "$DIST_DIR"/files-* "$TEMP_DIR/version_info"
|
||||
chmod g+w "$TEMP_DIR"/version_info/files-*
|
||||
# Generate build-{os}.json for each platform
|
||||
SHORT_VERSION="${VERSION:0:3}"
|
||||
SHORT_VERSION=$(echo "$VERSION" | grep -oE '^[0-9]+\.[0-9]+')
|
||||
DETAILS_URL="https://www.zotero.org/support/${SHORT_VERSION}_changelog"
|
||||
for i in `seq 0 1 $((${#PLATFORMS}-1))`
|
||||
do
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue