From 3a9343cab88c6af441f4c3c611212dd2196a0587 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 26 Mar 2026 04:25:24 +0000 Subject: [PATCH] fix: sign script uses date-based version to avoid conflicts Old approach: increment patch by 1 each time. Failed when the same patch number was already signed with Mozilla from a previous session. New approach: version is 1.MMDD.HHMM (e.g., 1.326.1542). Guaranteed unique per minute, all parts under 65535. https://claude.ai/code/session_01Dvgwe7XMoSxnWXkih8p1Cw --- sign-firefox.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/sign-firefox.sh b/sign-firefox.sh index 15b7251..ed53a26 100755 --- a/sign-firefox.sh +++ b/sign-firefox.sh @@ -20,10 +20,12 @@ if [ ! -f "$ENV_FILE" ]; then exit 1 fi -# --- Auto-bump patch version --- -CURRENT_VERSION=$(grep -o '"version": "[^"]*"' "$MANIFEST" | head -1 | grep -o '[0-9.]*') -IFS='.' read -r MAJOR MINOR PATCH <<< "$CURRENT_VERSION" -PATCH=$((PATCH + 1)) +# --- Auto-bump version — always unique --- +# Format: MAJOR.YMMDD.HHMM (e.g., 1.60326.1542) +# Each part stays under 65535, guaranteed unique per minute +MAJOR=1 +MINOR=$(date +%-m%d) # e.g., 326 for March 26, 1225 for Dec 25 +PATCH=$(date +%-H%M) # e.g., 1542 for 3:42 PM NEW_VERSION="$MAJOR.$MINOR.$PATCH" echo "Version: $CURRENT_VERSION → $NEW_VERSION"