Skip to content
Snippets Groups Projects
Commit 184ef27e authored by Ruben Rodriguez's avatar Ruben Rodriguez
Browse files

Added make-thunderbird. Rebrands to Icedove and applies custom settings

parent ef02a504
No related branches found
No related tags found
No related merge requests found
Showing
with 81 additions and 3 deletions
helpers/DATA/thunderbird/branding/content/about-background.png

80.3 KiB

helpers/DATA/thunderbird/branding/content/about-logo.png

64.1 KiB

helpers/DATA/thunderbird/branding/content/about-wordmark.png

11.2 KiB

helpers/DATA/thunderbird/branding/content/about.png

54.3 KiB

helpers/DATA/thunderbird/branding/content/icon48.png

5.37 KiB

helpers/DATA/thunderbird/branding/content/icon64.png

22.6 KiB

helpers/DATA/thunderbird/branding/mailicon16.png

920 B

helpers/DATA/thunderbird/branding/mailicon22.png

1.48 KiB

helpers/DATA/thunderbird/branding/mailicon24.png

1.73 KiB

helpers/DATA/thunderbird/branding/mailicon256.png

57.7 KiB

helpers/DATA/thunderbird/branding/mailicon32.png

2.67 KiB

helpers/DATA/thunderbird/branding/mailicon48.png

5.37 KiB

helpers/DATA/thunderbird/branding/wizHeader.bmp

33.5 KiB

helpers/DATA/thunderbird/branding/wizHeaderRTL.bmp

33.5 KiB

helpers/DATA/thunderbird/branding/wizWatermark.bmp

201 KiB

#!/bin/sh
#!/bin/bash
#
# Copyright (C) 2014-2018 Ruben Rodriguez <ruben@trisquel.info>
# Copyright (C) 2018 Ruben Rodriguez <ruben@trisquel.info>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
......@@ -21,9 +21,14 @@ VERSION=1
. ./config
cp $DATA/branding/* mail/branding/nightly/ -r
cat << EOF >> debian/vendor.js
// Trisquel settings
pref("mail.provider.enabled", false);
pref("mail.provider.providerList", "");
pref("mail.provider.suggestFromName", "");
pref("mail.shell.checkDefaultClient", false);
pref("spellchecker.dictionaries.download.url", "http://dictionaries.mozdev.org/installation.html");
pref("extensions.webservice.discoverURL", "https://directory.fsf.org/wiki/Icedove");
......@@ -31,8 +36,81 @@ pref("extensions.blocklist.enabled", false);
pref("mail.rights.version", 1);
pref("toolkit.telemetry.prompted", 2);
pref("toolkit.telemetry.rejected", true);
pref("mailnews.start_page.enabled", false);
pref("mailnews.start_page.url", "");
pref("mailnews.start_page.override_url", "");
pref("app.update.auto", false);
pref("app.update.enabled", false);
pref("browser.search.update", false);
pref("extensions.update.enabled", false);
pref("network.cookie.cookieBehavior", 2);
pref("app.releaseNotesURL", "http://trisquel.info/mailclient");
pref("pfs.datasource.url", "https://trisquel.info/sites/pfs.php?mime=%PLUGIN_MIMETYPE%");
pref("pfs.filehint.url", "https://trisquel.info/sites/pfs.php?mime=%PLUGIN_MIMETYPE%");
pref("keyword.URL", "https://duckduckgo.com/?t=trisquel&q=!+");
pref("browser.search.defaultenginename", "Wikipedia (en)");
pref("browser.search.order.1", "Wikipedia (en)");
pref("browser.search.defaultenginename", "Wikipedia (en)");
pref("browser.search.showOneOffButtons", false);
pref("browser.search.suggest.enabled",false);
EOF
sed '/enable-tests/d' -i debian/config/mozconfig.in
sed '/^MOZ_PKG_NAME/s/.*/MOZ_PKG_NAME=icedove/' -i debian/build/config.mk
cat << EOF >> debian/build/config.mk
# Trisquel settings
MOZ_FORCE_UNOFFICIAL_BRANDING = 1
MOZ_WANT_UNIT_TESTS = 0
MOZ_ENABLE_BREAKPAD = 0
EOF
changelog "Custom settings for Trisquel"
# Replace Thunderbird branding
find -type d | grep thunderbird | xargs rename s/thunderbird/icedove/
find -type d | grep thunderbird | xargs rename s/thunderbird/icedove/
find -type f | grep thunderbird | xargs rename s/thunderbird/icedove/
find -type f | grep Thunderbird | xargs rename s/Thunderbird/Icedove/
SEDSCRIPT="
s/Mozilla Thunderbird/Icedove/g;
s/thunderbird/icedove/g;
s/Thunderbird/Icedove/g;
s/THUNDERBIRD/ICEDOVE/g;
s/ Mozilla / Trisquel /g;
s|PACKAGES/icedove|PACKAGES/thunderbird|g;
s/iceweasel, icedove/iceweasel, thunderbird/g;
s/Replaces: icedove/Replaces: thunderbird/g;
s|www.mozilla.com/icedove/central|trisquel.info/browser|g;
s|mozilla.com/plugincheck|trisquel.info/browser|g;
s|www.mozilla.com/legal/privacy|trisquel.info/legal|g;
s/Trisquel Public/Mozilla Public/g;
s/Trisquel Foundation/Mozilla Foundation/g;
s/Trisquel Corporation/Mozilla Corporation/g;
"
echo "Running batch replace operation"
find . -type f -not -iregex '.*changelog.*' -not -iregex '.*copyright.*' -execdir /bin/sed --follow-symlinks -i "$SEDSCRIPT" '{}' ';'
replace Daily Icedove mail/branding/
sed '/.*<description.*communityExperimentalDesc/,/\/description/d' -i ./mail/base/content/aboutDialog.xul
sed '/.*<description.*communityDesc/,/\/description/d' -i ./mail/base/content/aboutDialog.xul
sed '/.*<description.*contributeDesc/,/\/description/d' -i ./mail/base/content/aboutDialog.xul
# We went too far...
sed s/Trisquel/Mozilla/ l10n/compare-locales/scripts/compare-locales -i
sed s/Trisquel/Mozilla/ l10n/compare-locales/setup.py -i
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
debian/rules debian/control
touch -d "yesterday" debian/control
debian/rules debian/control
changelog "Rebranded for Trisquel"
compile
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment