thuderbird: prepare icedove release v128
This commit is contained in:
parent
4cecb36869
commit
eb6fbf6434
7 changed files with 1275 additions and 102 deletions
|
|
@ -1,6 +1,6 @@
|
|||
#!/bin/bash
|
||||
#
|
||||
# Copyright (C) 2023 Luis Guzmán <ark@switnet.org>
|
||||
# Copyright (C) 2025 Luis Guzmán <ark@switnet.org>
|
||||
# Copyright (C) 2020 Ruben Rodriguez <ruben@trisquel.info>
|
||||
# Copyright (C) 2019 David Trudgian <dave@trudgian.net>
|
||||
#
|
||||
|
|
@ -19,12 +19,23 @@
|
|||
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
#
|
||||
|
||||
VERSION=22
|
||||
VERSION=23
|
||||
EXTERNAL='deb-src http://ppa.launchpadcontent.net/mozillateam/ppa/ubuntu $UPSTREAM main'
|
||||
REPOKEY=9BDB3D89CE49EC21
|
||||
|
||||
. ./config
|
||||
|
||||
# Get initial SHA256 hashes.
|
||||
SHA256_F1=$(sha256sum third_party/cbindgen/vendor/winnow/examples/http/main.rs|awk '{print$1}')
|
||||
SHA256_F2=$(sha256sum third_party/cbindgen/vendor/winnow/examples/http/bench.rs|awk '{print$1}')
|
||||
SHA256_F3=$(sha256sum third_party/dump_syms/vendor/httparse/benches/parse.rs|awk '{print$1}')
|
||||
SHA256_F4=$(sha256sum third_party/dump_syms/vendor/httparse/src/lib.rs|awk '{print$1}')
|
||||
SHA256_F5=$(sha256sum third_party/dump_syms/vendor/hyper-rustls/src/connector/builder.rs|awk '{print$1}')
|
||||
SHA256_F6=$(sha256sum third_party/dump_syms/vendor/rustls/src/lib.rs|awk '{print$1}')
|
||||
SHA256_F7=$(sha256sum third_party/dump_syms/vendor/rustls-webpki/src/subject_name/dns_name.rs|awk '{print$1}')
|
||||
SHA256_F8=$(sha256sum third_party/dump_syms/vendor/rustls-webpki/src/verify_cert.rs|awk '{print$1}')
|
||||
SHA256_F9=$(sha256sum comm/third_party/rust/glean/src/configuration.rs|awk '{print$1}')
|
||||
|
||||
# Copy in our local Trisquel branding files.
|
||||
cp $DATA/branding/* comm/mail/branding/nightly/ -r
|
||||
cp $DATA/branding/* comm/mail/branding/thunderbird/ -r
|
||||
|
|
@ -93,7 +104,8 @@ pref("mail.ignore_thread.learn_more_url", "https://trisquel.info/wiki/icedove");
|
|||
pref("mail.pgpmime.addon_url", "https://enigmail.net/");
|
||||
pref("app.support.baseURL", "https://trisquel.info/wiki/icedove");
|
||||
pref("app.update.url.manual", "https://trisquel.info/wiki/icedove");
|
||||
pref("extensions.getAddons.link.url", "https://trisquel.info/en/browser-plain");
|
||||
// Send to the Icedove wiki as we have no addon store to recommend
|
||||
pref("extensions.getAddons.link.url", "https://trisquel.info/wiki/icedove");
|
||||
pref("extensions.getAddons.search.browseURL", "https://trisquel.info/en/browser-plain?keys=%TERMS%&tid=All");
|
||||
pref("extensions.getAddons.search.url", "https://trisquel.info/en/browser-plain?keys=%TERMS%&tid=All");
|
||||
|
||||
|
|
@ -134,7 +146,7 @@ EOF
|
|||
sed 's%https://www.mozilla.org/legal/privacy/%https://trisquel.info/legal%' -i ./browser/app/profile/firefox.js ./toolkit/content/aboutRights.xhtml
|
||||
sed -i 's|https://www.mozilla.org/thunderbird/legal/privacy/|https://trisquel.info/legal|' comm/mail/app/profile/all-thunderbird.js
|
||||
sed -i 's|https://www.mozilla.org/en-US/privacy/thunderbird/|https://trisquel.info/legal|' comm/mail/app/profile/all-thunderbird.js
|
||||
sed -i 's|https://www.mozilla.org/privacy/|https://trisquel.info/legal|' comm/mail/components/newmailaccount/content/accountProvisioner.xhtml
|
||||
sed -i 's|https://www.mozilla.org/privacy/thunderbird/|https://trisquel.info/legal|' comm/mail/components/accountcreation/content/accountSetup.xhtml
|
||||
grep -rl https://www.mozilla.org/privacy/thunderbird/ | xargs -r sed -i 's|https://www.mozilla.org/privacy/thunderbird/|https://trisquel.info/legal|g'
|
||||
|
||||
# Disable telemetry pings
|
||||
|
|
@ -206,21 +218,33 @@ s/Trisquel Corporation/Mozilla Corporation/g;
|
|||
s|this-firefox|this-abrowser|g;
|
||||
"
|
||||
echo "Running batch replace operation"
|
||||
find . -type f -not -iregex '.*changelog.*' -not -iregex '.*copyright.*' -not -iregex '.*third_party/rust.*' -execdir /bin/sed --follow-symlinks -i "$SEDSCRIPT" '{}' ';'
|
||||
find . -type f \
|
||||
-not -iregex '.*changelog.*' \
|
||||
-not -iregex '.*copyright.*' \
|
||||
-not -iregex '.*third_party/rust.*' \
|
||||
-not -iregex '.*comm/rust.*' \
|
||||
-execdir /bin/sed --follow-symlinks -i "$SEDSCRIPT" '{}' ';'
|
||||
|
||||
# Fix wrong changes, restore changes to reduce diff with previous sed script.
|
||||
grep -rl "Trisquel Bug" | xargs -r sed -i "s| Trisquel Bug | Mozilla Bug |g"
|
||||
grep -rl "AbrowserGraphics" | xargs -r sed -i "/github/s|AbrowserGraphics|FirefoxGraphics|g"
|
||||
grep -rl IcedoveProfileImporter. | xargs -r sed -i 's|IcedoveProfileImporter|ThunderbirdProfileImporter|g'
|
||||
grep -rl IcedoveProfileMigrator | xargs -r sed -i 's|IcedoveProfileMigrator|ThunderbirdProfileMigrator|g'
|
||||
grep -rl AbrowserViewTestUtils | xargs -r sed -i 's|AbrowserViewTestUtils|FirefoxViewTestUtils|g'
|
||||
grep -rl AbrowserRelay | xargs -r sed -i 's|AbrowserRelay|FirefoxRelay|g'
|
||||
sed -i '/TB_/s|mozilla-icedove|mozilla-thunderbird|' debian/rules
|
||||
#Fix 1 character bigger than allowed yml line (81 > 80)
|
||||
sed -i "s|Abrowser is not running. It|Abrowser isn't running. It|" toolkit/mozapps/update/pings.yaml
|
||||
sed -i '/Certificate data/s|Trisquel|Mozilla|' third_party/dump_syms/vendor/webpki-roots/LICENSE
|
||||
|
||||
sed 's|https://www.icedove.net/features/|https://trisquel.info/wiki/icedove|' -i comm/mail/base/content/utilityOverlay.js
|
||||
sed 's|https://www.icedove.net/get-involved/|https://trisquel.info/wiki/|' -i comm/mail/base/content/utilityOverlay.js
|
||||
sed 's|https://give.icedove.net/.*"|https://trisquel.info/donate/"|' -i comm/mail/base/content/utilityOverlay.js
|
||||
sed 's|https://www.icedove.net/.*/features/|https://trisquel.info/wiki/icedove|' -i comm/mailnews/base/content/msgAccountCentral.xhtml
|
||||
sed 's|https://give.icedove.net/.*"|https://trisquel.info/donate/"|' -i comm/mailnews/base/content/msgAccountCentral.xhtml
|
||||
sed '/app.donation.eoy.url/s|https://www.icedove.net/icedove/.*"|https://trisquel.info/donate/"|' -i comm/mail/app/profile/all-icedove.js
|
||||
sed 's|https://support.mozilla.org/products/icedove|https://trisquel.info/wiki/icedove|' -i comm/mailnews/base/content/msgAccountCentral.xhtml
|
||||
sed 's|https://www.icedove.net/.*/get-involved/|https://trisquel.info/wiki/|' -i comm/mailnews/base/content/msgAccountCentral.xhtml
|
||||
sed 's|https://developer.icedove.net/|https://gitlab.trisquel.org/trisquel|' -i comm/mailnews/base/content/msgAccountCentral.xhtml
|
||||
# Set main links - check comm/mailnews/base/content/msgAccountCentral.xhtml for main class & id links.
|
||||
grep -rl 'https://www.icedove.net/participate/' comm/ | xargs -r sed -i 's|https://www.icedove.net/participate/|https://trisquel.info/wiki/|'
|
||||
grep -rl 'https://www.icedove.net/donate/' comm/ | xargs -r sed -i 's|https://www.icedove.net/donate/.*"|https://trisquel.info/donate/"|'
|
||||
grep -rl 'https://www.icedove.net/donate/' comm/ | xargs -r sed -i 's|https://www.icedove.net/donate/|https://trisquel.info/donate/|'
|
||||
grep -rl 'https://updates.icedove.net/icedove/' comm/ | xargs -r sed -i '/app.donation.eoy.url/s|https://updates.icedove.net/icedove/.*"|https://trisquel.info/donate/"|'
|
||||
grep -rl 'https://support.mozilla.org/products/icedove' comm/ | xargs -r sed -i 's|https://support.mozilla.org/products/icedove.*"|https://trisquel.info/wiki/icedove"|'
|
||||
grep -rl 'https://support.mozilla.org/products/icedove' comm/ | xargs -r sed -i 's|https://support.mozilla.org/products/icedove/|https://trisquel.info/wiki/icedove/|'
|
||||
grep -rl 'https://developer.icedove.net/' comm/ | xargs -r sed -i 's|https://developer.icedove.net/|https://gitlab.trisquel.org/trisquel/package-helpers|'
|
||||
|
||||
replace Daily Trisquel comm/mail/branding/
|
||||
# Remove Thunderbird branding
|
||||
|
|
@ -228,31 +252,31 @@ sed '/.*<div.*communityExperimentalDesc/,/\/div/d' -i ./comm/mail/base/content/a
|
|||
sed '/.*<div.*communityDesc/,/\/div/d' -i ./comm/mail/base/content/aboutDialog.xhtml
|
||||
sed '/.*<div.*contributeDesc/,/\/div/d' -i ./comm/mail/base/content/aboutDialog.xhtml
|
||||
|
||||
# Apply debian/control.in changes.
|
||||
sed '/^Source/s/.*/Source: thunderbird/' -i debian/control.in
|
||||
sed 's/Provides: mail-reader,/Provides: mail-reader, thunderbird,/' -i debian/control.in
|
||||
sed "s/Provides.*/Provides: icedove-locale-@LANGCODE@/" -i debian/control.langpacks
|
||||
|
||||
#Manual fixes to allow rebranding processed through hash checks and other changes.
|
||||
# Restore wrong replacement module names.
|
||||
grep -rl IcedoveProfileImporter.jsm | xargs -r sed -i 's|IcedoveProfileImporter.jsm|ThunderbirdProfileImporter.jsm|g'
|
||||
grep -rl IcedoveImport.jsm | xargs -r sed -i 's|IcedoveImport.jsm|ThunderbirdImport.jsm|g'
|
||||
grep -rl IcedoveProfileMigrator.jsm | xargs -r sed -i 's|IcedoveProfileMigrator.jsm|ThunderbirdProfileMigrator.jsm|g'
|
||||
grep -rl AbrowserViewTestUtils.sys.mjs | xargs -r sed -i 's|AbrowserViewTestUtils.sys.mjs|FirefoxViewTestUtils.sys.mjs|g'
|
||||
grep -rl AbrowserRelay.sys.mjs | xargs -r sed -i 's|AbrowserRelay.sys.mjs|FirefoxRelay.sys.mjs|g'
|
||||
grep -rl AbrowserRelayTelemetry.mjs | xargs -r sed -i 's|AbrowserRelayTelemetry.mjs|FirefoxRelayTelemetry.mjs|g'
|
||||
#Fix 1 character bigger than allowed yml line (81 > 80)
|
||||
sed -i "s|Abrowser is not running. It|Abrowser isn't running. It|" toolkit/mozapps/update/pings.yaml
|
||||
# Set and replace sha256 checksums to match our changes.
|
||||
SHA256_F1_MOD=$(sha256sum third_party/cbindgen/vendor/winnow/examples/http/main.rs|awk '{print$1}')
|
||||
SHA256_F2_MOD=$(sha256sum third_party/cbindgen/vendor/winnow/examples/http/bench.rs|awk '{print$1}')
|
||||
SHA256_F3_MOD=$(sha256sum third_party/dump_syms/vendor/httparse/benches/parse.rs|awk '{print$1}')
|
||||
SHA256_F4_MOD=$(sha256sum third_party/dump_syms/vendor/httparse/src/lib.rs|awk '{print$1}')
|
||||
SHA256_F5_MOD=$(sha256sum third_party/dump_syms/vendor/hyper-rustls/src/connector/builder.rs|awk '{print$1}')
|
||||
SHA256_F6_MOD=$(sha256sum third_party/dump_syms/vendor/rustls/src/lib.rs|awk '{print$1}')
|
||||
SHA256_F7_MOD=$(sha256sum third_party/dump_syms/vendor/rustls-webpki/src/subject_name/dns_name.rs|awk '{print$1}')
|
||||
SHA256_F8_MOD=$(sha256sum third_party/dump_syms/vendor/rustls-webpki/src/verify_cert.rs|awk '{print$1}')
|
||||
SHA256_F9_MOD=$(sha256sum comm/third_party/rust/glean/src/configuration.rs|awk '{print$1}')
|
||||
|
||||
#Replace md5sum checksums to match our changes.
|
||||
sed_csum 91a59d470e0700b4bcb3ff735d06799f3107b8ef4875a2e9904607b164be0326 05f8e055df0e14ee6d50183e701888a49b74fa085dfac9d6032a2f985b5309e6 third_party/dump_syms/vendor/
|
||||
sed_csum a64116a6d46ab30ce91deabdb4c5388f03be632326e8a00110bfb0c598474a0a 5cd020aae75fdcd21aca4799d302f1720075c9dd6fb12ba19e6403a8012970b2 third_party/dump_syms/vendor/
|
||||
sed_csum fe4881780e8cd0181748a891102b2dd54c2060546d7648ec1b6435529bd0dcc2 40588888ea0d4b7e86bc1e184be9e667bd1b0480fe00406ebb828821f5080a07 third_party/dump_syms/vendor/
|
||||
sed_csum 6f3be57dae549574569b812acab6213f4136ba9c4ad60a21848043d26e6aaece 07f28083516d3660082d9c46fe2349a1099720b4f30cc7431f1cc267690d6505 third_party/dump_syms/vendor/
|
||||
sed_csum dc1147f2b16de747c15ff9bdab44fc02fe18dcc1b6abe6acba56b69bec99013b 0fcf90cc1bd0498e18dba003142bc0dfdb43e761d88a8caefeb2d8018e2da1bb third_party/dump_syms/vendor/
|
||||
sed_csum 82c82f8ef547f67f3f449a0b240e2df4ed538d976a379b07e53d5ce7cde2438c 01baa5e11aa7ec74360151d379ba8b5607abcd34132e69568c816c0116958a26 third_party/dump_syms/vendor/
|
||||
sed_csum 6018b016930c86610953a88ca35e8cebffd2dbbd92f11502c2464ab4281e7bbc 04c8d6c8a498abac61ffb2725484c2732328270e25a7e3ed452657962ce76f4e third_party/dump_syms/vendor/
|
||||
sed_csum bcb4b59cfc5f48fbaba954b8ae4daa9eaecf9044afc89208a78a7e995c321b81 5f33885b0cc238abc78622e32bd56e6c550d90f1de419d5d7768c8da7f53f039 third_party/dump_syms/vendor/
|
||||
sed_csum 883b327fdad366e414ece83f65ab6b0216ab819c7854b382acf91b702b5a9697 1d38e99d6d879e763f6570d0efff0a18d86fbf388c1eaf1db7437f6914e6f57a third_party/rust/glean/
|
||||
sed_csum $SHA256_F1 $SHA256_F1_MOD
|
||||
sed_csum $SHA256_F2 $SHA256_F2_MOD
|
||||
sed_csum $SHA256_F3 $SHA256_F3_MOD
|
||||
sed_csum $SHA256_F4 $SHA256_F4_MOD
|
||||
sed_csum $SHA256_F5 $SHA256_F5_MOD
|
||||
sed_csum $SHA256_F6 $SHA256_F6_MOD
|
||||
sed_csum $SHA256_F7 $SHA256_F7_MOD
|
||||
sed_csum $SHA256_F8 $SHA256_F8_MOD
|
||||
sed_csum $SHA256_F9 $SHA256_F9_MOD
|
||||
#EO Manual fixing.
|
||||
|
||||
# about: page mods, like rights.
|
||||
|
|
@ -301,8 +325,10 @@ do
|
|||
find comm/suite -name $r2* -delete
|
||||
done
|
||||
|
||||
echo "Customizing search engines..."
|
||||
# Reprocess search preconfiguration dump
|
||||
python3 $DATA/process-json-files.py . browser/components/extensions/schemas/
|
||||
python3 $DATA/process-json-files-v2.py . $DATA/search-custom/
|
||||
|
||||
#EO Debbuging tools
|
||||
|
||||
|
|
@ -320,6 +346,16 @@ sed -i '/short-name/s|Trisquel|Icedove|' $BRAND_FTL_NTLY
|
|||
sed -i '/full-name/s|Icedove Trisquel|Icedove Mail|' $BRAND_FTL_NTLY
|
||||
sed -i '/full-name/s|Icedove|Icedove Mail|' $BRAND_FTL_STD
|
||||
|
||||
# Clean brand from export to mobile title & rm android app recommendation - l10n
|
||||
# qr-export-get-app removed via patch.
|
||||
patch_p1 $DATA/patches_changes/001-set_export_to_mobile_l10n.patch
|
||||
grep -lr "qr-export-pane-header ="|xargs -r sed -i '/^qr-export-pane-header =/s| { -brand-product-name[^}]*}||g'
|
||||
grep -rl 'qr-export-no-accounts =' | xargs -r sed -i '/^qr-export-no-accounts =/ {
|
||||
s|{ -brand-product-name }||g;
|
||||
s| by for | for |g;
|
||||
s| supported by for | supported for |g
|
||||
}'
|
||||
|
||||
cat << EOF > comm/mail/branding/nightly/locales/en-US/brand.dtd
|
||||
<!-- This Source Code Form is subject to the terms of the Mozilla Public
|
||||
- License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue