Fix changelog URL generation for two-digit major versions
Some checks are pending
CI / Test (shard 1) (push) Waiting to run
CI / Test (shard 2) (push) Waiting to run
CI / Test (shard 3) (push) Waiting to run
CI / Test (shard 4) (push) Waiting to run
CI / Utilities Tests (push) Waiting to run
CI / Build, Upload (push) Waiting to run

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:
Dan Stillman 2026-08-17 12:10:35 -04:00
parent 5a6c9245f0
commit 5757396197
2 changed files with 3 additions and 2 deletions

View file

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

View file

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