From a1d8a85cc8b00414595b598bc82c1734a4c4abda Mon Sep 17 00:00:00 2001 From: Funda Wang Date: Wed, 20 Aug 2025 09:05:14 +0800 Subject: [PATCH] 128.14.0 (cherry picked from commit f35bde94eedc2520d968e8e556719b3cd994906a) --- create-thunderbird-langpacks.sh | 8 ++ get-calendar-langpacks.sh | 126 ------------------ ...z => thunderbird-128.14.0esr.source.tar.xz | 4 +- ...> thunderbird-langpacks-128.14.0esr.tar.xz | 4 +- thunderbird.spec | 9 +- 5 files changed, 18 insertions(+), 133 deletions(-) create mode 100755 create-thunderbird-langpacks.sh delete mode 100755 get-calendar-langpacks.sh rename thunderbird-128.13.0esr.source.tar.xz => thunderbird-128.14.0esr.source.tar.xz (32%) rename thunderbird-langpacks-128.13.0esr-20250724.tar.xz => thunderbird-langpacks-128.14.0esr.tar.xz (32%) diff --git a/create-thunderbird-langpacks.sh b/create-thunderbird-langpacks.sh new file mode 100755 index 0000000..b8177ae --- /dev/null +++ b/create-thunderbird-langpacks.sh @@ -0,0 +1,8 @@ +#!/bin/sh +version=$1 +wget -r -np -nH -R index.html https://ftp.mozilla.org/pub/thunderbird/releases/$version/linux-x86_64/xpi/ +mkdir thunderbird-langpacks +find -name *.xpi | mv `xargs` thunderbird-langpacks/ +tar -cJf thunderbird-langpacks-$version.tar.xz thunderbird-langpacks +rm -rf pub thunderbird-langpacks +rm -f robots.txt diff --git a/get-calendar-langpacks.sh b/get-calendar-langpacks.sh deleted file mode 100755 index 854cae2..0000000 --- a/get-calendar-langpacks.sh +++ /dev/null @@ -1,126 +0,0 @@ -#!/bin/bash -#set -x -set -e -usage() -{ -cat << EOF -usage: $0 options - -This script downloads calendar langpacks for Thunderbird. - -OPTIONS: - -h Show this message - -v Version string (7.0.1) - -b Build number (1, 2, 3) - -r Reuse downloaded files (when you don't want to redownload) -EOF -} - -VER= -BUILDNUM= -LANG_DATE=`date "+%Y%m%d"` -while getopts “hv:b:r” OPTION -do - case $OPTION in - h) - usage - exit 1 - ;; - v) - VER=$OPTARG - ;; - b) - BUILDNUM=$OPTARG - ;; - ?) - usage - exit - ;; - esac -done - -if [ -z "$VER" -o -z "$BUILDNUM" ] -then - echo "Missing version or build number." - usage - exit 1 -fi - -WHITE='\033[1;33m' -NC='\033[0m' # No Color - -LOCALES=`curl -f https://archive.mozilla.org/pub/thunderbird/candidates/$VER-candidates/build$BUILDNUM/linux-i686/ | grep "a href"|sed -e "s|.*/\([^/]*\)/\".*|\1|"|tail -n+2 |grep -v xpi` -#echo $LOCALES -rm -rf lightning-langpacks -mkdir -p lightning-langpacks -cd lightning-langpacks -LOCALE_COUNT=`echo $LOCALES| tr ' ' '\n' | wc -l` -LOCALE_NUM=0 -for lang in $LOCALES; do - LOCALE_NUM=$((LOCALE_NUM+1)) - echo -e "${WHITE}Processing calendar locale: $lang ($LOCALE_NUM/$LOCALE_COUNT)${NC}" - mkdir -p extracted_lightning - mkdir -p calendar-locales - #echo Downloading TB binary for locale: $lang - wget --quiet https://archive.mozilla.org/pub/thunderbird/candidates/$VER-candidates/build$BUILDNUM/linux-i686/$lang/thunderbird-$VER.tar.bz2 - - cd extracted_lightning - tar -xf ../thunderbird-$VER.tar.bz2 thunderbird/distribution/extensions/\{e2fda1a4-762b-4020-b5ad-a41df1933103\}.xpi - set +e - unzip -qq thunderbird/distribution/extensions/\{e2fda1a4-762b-4020-b5ad-a41df1933103\}.xpi - set -e - LIGHTNING_VERSION=`cat app.ini |grep "^Version="|sed -e 's/Version=//'` - BUILD_ID=`cat app.ini |grep "^BuildID="|sed -e 's/BuildID=//'` - MAX_VERSION=`cat app.ini |grep MaxVersion|sed -e s/MaxVersion=//` - MIN_VERSION=`cat app.ini |grep MinVersion|sed -e s/MinVersion=//` - rm -rf thunderbird - mkdir -p ../calendar-locales/chrome - cp -r chrome/calendar-$lang ../calendar-locales/chrome - cp -r chrome/lightning-$lang ../calendar-locales/chrome - cd - - - cd calendar-locales - # create manifest - cat > manifest.json </dev/null || : #=============================================================================== %changelog +* Wed Aug 20 2025 Funda Wang - 128.14.0-1 +- update to 128.14.0 + * Thu Jul 24 2025 Funda Wang - 128.13.0-1 - update to 128.13.0 -- Gitee