diff --git a/helpers/DATA/thunderbird/branding/content/about-background.png b/helpers/DATA/thunderbird/branding/content/about-background.png new file mode 100644 index 0000000..7ecda0a Binary files /dev/null and b/helpers/DATA/thunderbird/branding/content/about-background.png differ diff --git a/helpers/DATA/thunderbird/branding/content/about-logo.png b/helpers/DATA/thunderbird/branding/content/about-logo.png new file mode 100644 index 0000000..7ca8927 Binary files /dev/null and b/helpers/DATA/thunderbird/branding/content/about-logo.png differ diff --git a/helpers/DATA/thunderbird/branding/content/about-wordmark.png b/helpers/DATA/thunderbird/branding/content/about-wordmark.png new file mode 100644 index 0000000..b0b0347 Binary files /dev/null and b/helpers/DATA/thunderbird/branding/content/about-wordmark.png differ diff --git a/helpers/DATA/thunderbird/branding/content/about.png b/helpers/DATA/thunderbird/branding/content/about.png new file mode 100644 index 0000000..ea2360f Binary files /dev/null and b/helpers/DATA/thunderbird/branding/content/about.png differ diff --git a/helpers/DATA/thunderbird/branding/content/icon48.png b/helpers/DATA/thunderbird/branding/content/icon48.png new file mode 100644 index 0000000..6472c47 Binary files /dev/null and b/helpers/DATA/thunderbird/branding/content/icon48.png differ diff --git a/helpers/DATA/thunderbird/branding/content/icon64.png b/helpers/DATA/thunderbird/branding/content/icon64.png new file mode 100644 index 0000000..bc678b1 Binary files /dev/null and b/helpers/DATA/thunderbird/branding/content/icon64.png differ diff --git a/helpers/DATA/thunderbird/branding/mailicon16.png b/helpers/DATA/thunderbird/branding/mailicon16.png new file mode 100644 index 0000000..412c0aa Binary files /dev/null and b/helpers/DATA/thunderbird/branding/mailicon16.png differ diff --git a/helpers/DATA/thunderbird/branding/mailicon22.png b/helpers/DATA/thunderbird/branding/mailicon22.png new file mode 100644 index 0000000..29904ba Binary files /dev/null and b/helpers/DATA/thunderbird/branding/mailicon22.png differ diff --git a/helpers/DATA/thunderbird/branding/mailicon24.png b/helpers/DATA/thunderbird/branding/mailicon24.png new file mode 100644 index 0000000..1ba411a Binary files /dev/null and b/helpers/DATA/thunderbird/branding/mailicon24.png differ diff --git a/helpers/DATA/thunderbird/branding/mailicon256.png b/helpers/DATA/thunderbird/branding/mailicon256.png new file mode 100644 index 0000000..5147e89 Binary files /dev/null and b/helpers/DATA/thunderbird/branding/mailicon256.png differ diff --git a/helpers/DATA/thunderbird/branding/mailicon32.png b/helpers/DATA/thunderbird/branding/mailicon32.png new file mode 100644 index 0000000..0b6ff34 Binary files /dev/null and b/helpers/DATA/thunderbird/branding/mailicon32.png differ diff --git a/helpers/DATA/thunderbird/branding/mailicon48.png b/helpers/DATA/thunderbird/branding/mailicon48.png new file mode 100644 index 0000000..6472c47 Binary files /dev/null and b/helpers/DATA/thunderbird/branding/mailicon48.png differ diff --git a/helpers/DATA/thunderbird/branding/wizHeader.bmp b/helpers/DATA/thunderbird/branding/wizHeader.bmp new file mode 100755 index 0000000..bf7ca15 Binary files /dev/null and b/helpers/DATA/thunderbird/branding/wizHeader.bmp differ diff --git a/helpers/DATA/thunderbird/branding/wizHeaderRTL.bmp b/helpers/DATA/thunderbird/branding/wizHeaderRTL.bmp new file mode 100755 index 0000000..fb0c9ae Binary files /dev/null and b/helpers/DATA/thunderbird/branding/wizHeaderRTL.bmp differ diff --git a/helpers/DATA/thunderbird/branding/wizWatermark.bmp b/helpers/DATA/thunderbird/branding/wizWatermark.bmp new file mode 100755 index 0000000..644eeec Binary files /dev/null and b/helpers/DATA/thunderbird/branding/wizWatermark.bmp differ diff --git a/helpers/make-thunderbird b/helpers/make-thunderbird index a2194a9..e6bc437 100644 --- a/helpers/make-thunderbird +++ b/helpers/make-thunderbird @@ -1,6 +1,6 @@ -#!/bin/sh +#!/bin/bash # -# Copyright (C) 2014-2018 Ruben Rodriguez +# Copyright (C) 2018 Ruben Rodriguez # # 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 -changelog "Custom settings for Trisquel" +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 + +# 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 '/.*