From d16a5b29e81bb6e0e58af2a97484defccacf355c Mon Sep 17 00:00:00 2001 From: BeatLink Date: Fri, 16 Aug 2019 20:00:38 -0500 Subject: Move branding and settings to seperate repos and move browser to top level --- README.md | 6 ++ android/mozconfig-android | 0 browser/README.md | 5 -- browser/android/mozconfig-android | 0 .../branding/librewolf/VisualElements_150.png | Bin 7170 -> 0 bytes .../branding/librewolf/VisualElements_70.png | Bin 3318 -> 0 bytes .../browser/branding/librewolf/background.png | Bin 1480 -> 0 bytes .../browser/branding/librewolf/bgstub.jpg | Bin 1228 -> 0 bytes .../browser/branding/librewolf/bgstub_2x.jpg | Bin 3663 -> 0 bytes .../browser/branding/librewolf/branding.nsi | 50 ------------ .../browser/branding/librewolf/configure.sh | 9 --- .../librewolf/content/about-background.png | Bin 82254 -> 0 bytes .../branding/librewolf/content/about-logo.png | Bin 30342 -> 0 bytes .../branding/librewolf/content/about-wordmark.svg | 22 ----- .../browser/branding/librewolf/content/about.png | Bin 54209 -> 0 bytes .../branding/librewolf/content/aboutDialog.css | 25 ------ .../librewolf/content/horizontal-lockup.svg | 5 -- .../librewolf/content/identity-icons-brand.svg | 7 -- .../browser/branding/librewolf/content/jar.mn | 18 ----- .../browser/branding/librewolf/content/moz.build | 7 -- .../browser/branding/librewolf/default128.png | Bin 6139 -> 0 bytes .../browser/branding/librewolf/default16.png | Bin 695 -> 0 bytes .../browser/branding/librewolf/default32.png | Bin 1481 -> 0 bytes .../browser/branding/librewolf/default48.png | Bin 2242 -> 0 bytes .../browser/branding/librewolf/default64.png | Bin 3038 -> 0 bytes .../browser/branding/librewolf/disk.icns | Bin 710029 -> 0 bytes .../browser/branding/librewolf/document.icns | Bin 22118 -> 0 bytes .../browser/branding/librewolf/document.ico | Bin 79414 -> 0 bytes .../browser/branding/librewolf/dsstore | Bin 12292 -> 0 bytes .../librewolf/firefox.VisualElementsManifest.xml | 8 -- .../browser/branding/librewolf/firefox.icns | Bin 22524 -> 0 bytes .../browser/branding/librewolf/firefox.ico | Bin 74588 -> 0 bytes .../browser/branding/librewolf/firefox64.ico | Bin 32038 -> 0 bytes .../branding/librewolf/locales/en-US/brand.dtd | 13 --- .../branding/librewolf/locales/en-US/brand.ftl | 22 ----- .../librewolf/locales/en-US/brand.properties | 14 ---- .../browser/branding/librewolf/locales/jar.mn | 13 --- .../browser/branding/librewolf/locales/moz.build | 9 --- .../browser/branding/librewolf/moz.build | 13 --- .../browser/branding/librewolf/newtab.ico | Bin 6518 -> 0 bytes .../browser/branding/librewolf/newwindow.ico | Bin 6518 -> 0 bytes .../browser/branding/librewolf/pbmode.ico | Bin 6518 -> 0 bytes .../branding/librewolf/pref/firefox-branding.js | 6 -- .../browser/branding/librewolf/wizHeader.bmp | Bin 34322 -> 0 bytes .../browser/branding/librewolf/wizHeaderRTL.bmp | Bin 34322 -> 0 bytes .../browser/branding/librewolf/wizWatermark.bmp | Bin 154544 -> 0 bytes browser/common/source_files/mozconfig | 29 ------- browser/linux/README.md | 14 ---- browser/linux/appimage/build_appimage.sh | 44 ---------- browser/linux/appimage/content/.DirIcon | 1 - browser/linux/appimage/content/AppRun | 12 --- browser/linux/appimage/content/librewolf.desktop | 6 -- browser/linux/appimage/content/librewolf.svg | 90 --------------------- browser/linux/binary_tarball/build_tarball.sh | 22 ----- .../binary_tarball/content/launch_librewolf.sh | 32 -------- .../scripts/1_Install_Dependencies.sh | 10 --- .../scripts/2_Download_Source_Code.sh | 11 --- .../scripts/3_Configure_Source_Code.sh | 17 ---- .../scripts/4_Build_Binary_Tarball.sh | 34 -------- .../scripts/5_Configure_Binary_Tarball.sh | 23 ------ browser/linux/binary_tarball/toggle-settings.sh | 21 ----- browser/linux/build.sh | 20 ----- browser/linux/flatpak/build_flatpak.sh | 61 -------------- .../linux/flatpak/content/io.gitlab.LibreWolf.json | 25 ------ browser/mac/install_script.txt | 1 - browser/mac/package_macos.sh | 46 ----------- browser/windows/install_script.txt | 1 - .../branding/librewolf/VisualElements_150.png | Bin 0 -> 7170 bytes .../branding/librewolf/VisualElements_70.png | Bin 0 -> 3318 bytes .../browser/branding/librewolf/background.png | Bin 0 -> 1480 bytes .../browser/branding/librewolf/bgstub.jpg | Bin 0 -> 1228 bytes .../browser/branding/librewolf/bgstub_2x.jpg | Bin 0 -> 3663 bytes .../browser/branding/librewolf/branding.nsi | 50 ++++++++++++ .../browser/branding/librewolf/configure.sh | 9 +++ .../librewolf/content/about-background.png | Bin 0 -> 82254 bytes .../branding/librewolf/content/about-logo.png | Bin 0 -> 30342 bytes .../branding/librewolf/content/about-wordmark.svg | 22 +++++ .../browser/branding/librewolf/content/about.png | Bin 0 -> 54209 bytes .../branding/librewolf/content/aboutDialog.css | 25 ++++++ .../librewolf/content/horizontal-lockup.svg | 5 ++ .../librewolf/content/identity-icons-brand.svg | 7 ++ .../browser/branding/librewolf/content/jar.mn | 18 +++++ .../browser/branding/librewolf/content/moz.build | 7 ++ .../browser/branding/librewolf/default128.png | Bin 0 -> 6139 bytes .../browser/branding/librewolf/default16.png | Bin 0 -> 695 bytes .../browser/branding/librewolf/default32.png | Bin 0 -> 1481 bytes .../browser/branding/librewolf/default48.png | Bin 0 -> 2242 bytes .../browser/branding/librewolf/default64.png | Bin 0 -> 3038 bytes .../browser/branding/librewolf/disk.icns | Bin 0 -> 710029 bytes .../browser/branding/librewolf/document.icns | Bin 0 -> 22118 bytes .../browser/branding/librewolf/document.ico | Bin 0 -> 79414 bytes .../browser/branding/librewolf/dsstore | Bin 0 -> 12292 bytes .../librewolf/firefox.VisualElementsManifest.xml | 8 ++ .../browser/branding/librewolf/firefox.icns | Bin 0 -> 22524 bytes .../browser/branding/librewolf/firefox.ico | Bin 0 -> 74588 bytes .../browser/branding/librewolf/firefox64.ico | Bin 0 -> 32038 bytes .../branding/librewolf/locales/en-US/brand.dtd | 13 +++ .../branding/librewolf/locales/en-US/brand.ftl | 22 +++++ .../librewolf/locales/en-US/brand.properties | 14 ++++ .../browser/branding/librewolf/locales/jar.mn | 13 +++ .../browser/branding/librewolf/locales/moz.build | 9 +++ .../browser/branding/librewolf/moz.build | 13 +++ .../browser/branding/librewolf/newtab.ico | Bin 0 -> 6518 bytes .../browser/branding/librewolf/newwindow.ico | Bin 0 -> 6518 bytes .../browser/branding/librewolf/pbmode.ico | Bin 0 -> 6518 bytes .../branding/librewolf/pref/firefox-branding.js | 6 ++ .../browser/branding/librewolf/wizHeader.bmp | Bin 0 -> 34322 bytes .../browser/branding/librewolf/wizHeaderRTL.bmp | Bin 0 -> 34322 bytes .../browser/branding/librewolf/wizWatermark.bmp | Bin 0 -> 154544 bytes common/source_files/mozconfig | 29 +++++++ linux/README.md | 14 ++++ linux/appimage/build_appimage.sh | 44 ++++++++++ linux/appimage/content/.DirIcon | 1 + linux/appimage/content/AppRun | 12 +++ linux/appimage/content/librewolf.desktop | 6 ++ linux/appimage/content/librewolf.svg | 90 +++++++++++++++++++++ linux/binary_tarball/build_tarball.sh | 22 +++++ linux/binary_tarball/content/launch_librewolf.sh | 32 ++++++++ .../scripts/1_Install_Dependencies.sh | 10 +++ .../scripts/2_Download_Source_Code.sh | 11 +++ .../scripts/3_Configure_Source_Code.sh | 17 ++++ .../scripts/4_Build_Binary_Tarball.sh | 34 ++++++++ .../scripts/5_Configure_Binary_Tarball.sh | 23 ++++++ linux/binary_tarball/toggle-settings.sh | 21 +++++ linux/build.sh | 20 +++++ linux/flatpak/build_flatpak.sh | 61 ++++++++++++++ linux/flatpak/content/io.gitlab.LibreWolf.json | 25 ++++++ mac/install_script.txt | 1 + mac/package_macos.sh | 46 +++++++++++ windows/install_script.txt | 1 + 130 files changed, 767 insertions(+), 766 deletions(-) create mode 100644 android/mozconfig-android delete mode 100644 browser/README.md delete mode 100644 browser/android/mozconfig-android delete mode 100644 browser/common/source_files/browser/branding/librewolf/VisualElements_150.png delete mode 100644 browser/common/source_files/browser/branding/librewolf/VisualElements_70.png delete mode 100644 browser/common/source_files/browser/branding/librewolf/background.png delete mode 100644 browser/common/source_files/browser/branding/librewolf/bgstub.jpg delete mode 100644 browser/common/source_files/browser/branding/librewolf/bgstub_2x.jpg delete mode 100644 browser/common/source_files/browser/branding/librewolf/branding.nsi delete mode 100644 browser/common/source_files/browser/branding/librewolf/configure.sh delete mode 100644 browser/common/source_files/browser/branding/librewolf/content/about-background.png delete mode 100644 browser/common/source_files/browser/branding/librewolf/content/about-logo.png delete mode 100644 browser/common/source_files/browser/branding/librewolf/content/about-wordmark.svg delete mode 100644 browser/common/source_files/browser/branding/librewolf/content/about.png delete mode 100644 browser/common/source_files/browser/branding/librewolf/content/aboutDialog.css delete mode 100644 browser/common/source_files/browser/branding/librewolf/content/horizontal-lockup.svg delete mode 100644 browser/common/source_files/browser/branding/librewolf/content/identity-icons-brand.svg delete mode 100644 browser/common/source_files/browser/branding/librewolf/content/jar.mn delete mode 100644 browser/common/source_files/browser/branding/librewolf/content/moz.build delete mode 100644 browser/common/source_files/browser/branding/librewolf/default128.png delete mode 100644 browser/common/source_files/browser/branding/librewolf/default16.png delete mode 100644 browser/common/source_files/browser/branding/librewolf/default32.png delete mode 100644 browser/common/source_files/browser/branding/librewolf/default48.png delete mode 100644 browser/common/source_files/browser/branding/librewolf/default64.png delete mode 100644 browser/common/source_files/browser/branding/librewolf/disk.icns delete mode 100644 browser/common/source_files/browser/branding/librewolf/document.icns delete mode 100644 browser/common/source_files/browser/branding/librewolf/document.ico delete mode 100644 browser/common/source_files/browser/branding/librewolf/dsstore delete mode 100644 browser/common/source_files/browser/branding/librewolf/firefox.VisualElementsManifest.xml delete mode 100644 browser/common/source_files/browser/branding/librewolf/firefox.icns delete mode 100644 browser/common/source_files/browser/branding/librewolf/firefox.ico delete mode 100644 browser/common/source_files/browser/branding/librewolf/firefox64.ico delete mode 100644 browser/common/source_files/browser/branding/librewolf/locales/en-US/brand.dtd delete mode 100644 browser/common/source_files/browser/branding/librewolf/locales/en-US/brand.ftl delete mode 100644 browser/common/source_files/browser/branding/librewolf/locales/en-US/brand.properties delete mode 100644 browser/common/source_files/browser/branding/librewolf/locales/jar.mn delete mode 100644 browser/common/source_files/browser/branding/librewolf/locales/moz.build delete mode 100644 browser/common/source_files/browser/branding/librewolf/moz.build delete mode 100644 browser/common/source_files/browser/branding/librewolf/newtab.ico delete mode 100644 browser/common/source_files/browser/branding/librewolf/newwindow.ico delete mode 100644 browser/common/source_files/browser/branding/librewolf/pbmode.ico delete mode 100644 browser/common/source_files/browser/branding/librewolf/pref/firefox-branding.js delete mode 100644 browser/common/source_files/browser/branding/librewolf/wizHeader.bmp delete mode 100644 browser/common/source_files/browser/branding/librewolf/wizHeaderRTL.bmp delete mode 100644 browser/common/source_files/browser/branding/librewolf/wizWatermark.bmp delete mode 100644 browser/common/source_files/mozconfig delete mode 100644 browser/linux/README.md delete mode 100755 browser/linux/appimage/build_appimage.sh delete mode 120000 browser/linux/appimage/content/.DirIcon delete mode 100755 browser/linux/appimage/content/AppRun delete mode 100644 browser/linux/appimage/content/librewolf.desktop delete mode 100644 browser/linux/appimage/content/librewolf.svg delete mode 100755 browser/linux/binary_tarball/build_tarball.sh delete mode 100755 browser/linux/binary_tarball/content/launch_librewolf.sh delete mode 100755 browser/linux/binary_tarball/scripts/1_Install_Dependencies.sh delete mode 100755 browser/linux/binary_tarball/scripts/2_Download_Source_Code.sh delete mode 100755 browser/linux/binary_tarball/scripts/3_Configure_Source_Code.sh delete mode 100755 browser/linux/binary_tarball/scripts/4_Build_Binary_Tarball.sh delete mode 100755 browser/linux/binary_tarball/scripts/5_Configure_Binary_Tarball.sh delete mode 100644 browser/linux/binary_tarball/toggle-settings.sh delete mode 100755 browser/linux/build.sh delete mode 100755 browser/linux/flatpak/build_flatpak.sh delete mode 100644 browser/linux/flatpak/content/io.gitlab.LibreWolf.json delete mode 100644 browser/mac/install_script.txt delete mode 100755 browser/mac/package_macos.sh delete mode 100644 browser/windows/install_script.txt create mode 100644 common/source_files/browser/branding/librewolf/VisualElements_150.png create mode 100644 common/source_files/browser/branding/librewolf/VisualElements_70.png create mode 100644 common/source_files/browser/branding/librewolf/background.png create mode 100644 common/source_files/browser/branding/librewolf/bgstub.jpg create mode 100644 common/source_files/browser/branding/librewolf/bgstub_2x.jpg create mode 100644 common/source_files/browser/branding/librewolf/branding.nsi create mode 100644 common/source_files/browser/branding/librewolf/configure.sh create mode 100644 common/source_files/browser/branding/librewolf/content/about-background.png create mode 100644 common/source_files/browser/branding/librewolf/content/about-logo.png create mode 100644 common/source_files/browser/branding/librewolf/content/about-wordmark.svg create mode 100644 common/source_files/browser/branding/librewolf/content/about.png create mode 100644 common/source_files/browser/branding/librewolf/content/aboutDialog.css create mode 100644 common/source_files/browser/branding/librewolf/content/horizontal-lockup.svg create mode 100644 common/source_files/browser/branding/librewolf/content/identity-icons-brand.svg create mode 100644 common/source_files/browser/branding/librewolf/content/jar.mn create mode 100644 common/source_files/browser/branding/librewolf/content/moz.build create mode 100644 common/source_files/browser/branding/librewolf/default128.png create mode 100644 common/source_files/browser/branding/librewolf/default16.png create mode 100644 common/source_files/browser/branding/librewolf/default32.png create mode 100644 common/source_files/browser/branding/librewolf/default48.png create mode 100644 common/source_files/browser/branding/librewolf/default64.png create mode 100644 common/source_files/browser/branding/librewolf/disk.icns create mode 100644 common/source_files/browser/branding/librewolf/document.icns create mode 100644 common/source_files/browser/branding/librewolf/document.ico create mode 100644 common/source_files/browser/branding/librewolf/dsstore create mode 100644 common/source_files/browser/branding/librewolf/firefox.VisualElementsManifest.xml create mode 100644 common/source_files/browser/branding/librewolf/firefox.icns create mode 100644 common/source_files/browser/branding/librewolf/firefox.ico create mode 100644 common/source_files/browser/branding/librewolf/firefox64.ico create mode 100644 common/source_files/browser/branding/librewolf/locales/en-US/brand.dtd create mode 100644 common/source_files/browser/branding/librewolf/locales/en-US/brand.ftl create mode 100644 common/source_files/browser/branding/librewolf/locales/en-US/brand.properties create mode 100644 common/source_files/browser/branding/librewolf/locales/jar.mn create mode 100644 common/source_files/browser/branding/librewolf/locales/moz.build create mode 100644 common/source_files/browser/branding/librewolf/moz.build create mode 100644 common/source_files/browser/branding/librewolf/newtab.ico create mode 100644 common/source_files/browser/branding/librewolf/newwindow.ico create mode 100644 common/source_files/browser/branding/librewolf/pbmode.ico create mode 100644 common/source_files/browser/branding/librewolf/pref/firefox-branding.js create mode 100644 common/source_files/browser/branding/librewolf/wizHeader.bmp create mode 100644 common/source_files/browser/branding/librewolf/wizHeaderRTL.bmp create mode 100644 common/source_files/browser/branding/librewolf/wizWatermark.bmp create mode 100644 common/source_files/mozconfig create mode 100644 linux/README.md create mode 100755 linux/appimage/build_appimage.sh create mode 120000 linux/appimage/content/.DirIcon create mode 100755 linux/appimage/content/AppRun create mode 100644 linux/appimage/content/librewolf.desktop create mode 100644 linux/appimage/content/librewolf.svg create mode 100755 linux/binary_tarball/build_tarball.sh create mode 100755 linux/binary_tarball/content/launch_librewolf.sh create mode 100755 linux/binary_tarball/scripts/1_Install_Dependencies.sh create mode 100755 linux/binary_tarball/scripts/2_Download_Source_Code.sh create mode 100755 linux/binary_tarball/scripts/3_Configure_Source_Code.sh create mode 100755 linux/binary_tarball/scripts/4_Build_Binary_Tarball.sh create mode 100755 linux/binary_tarball/scripts/5_Configure_Binary_Tarball.sh create mode 100644 linux/binary_tarball/toggle-settings.sh create mode 100755 linux/build.sh create mode 100755 linux/flatpak/build_flatpak.sh create mode 100644 linux/flatpak/content/io.gitlab.LibreWolf.json create mode 100644 mac/install_script.txt create mode 100755 mac/package_macos.sh create mode 100644 windows/install_script.txt diff --git a/README.md b/README.md index 06e78b3..867f5f8 100644 --- a/README.md +++ b/README.md @@ -20,3 +20,9 @@ The docs are built from the [LibreWolf docs repo](https://gitlab.com/librewolf-c https://librewolf-community.gitlab.io The website is built from the [`librewolf-community.gitlab.io` repo](https://gitlab.com/librewolf-community/librewolf-community.gitlab.io). [Hugo](https://gohugo.io) is used to generate the site. + +## Browser Files +This folder contains platform specific subfolders which houses the scripts and files required to compile LibreWolf on various platforms such as Linux, Windows, Mac and android. +All of the platforms are self explanatory with the exception of common. Common stores files common to all platforms, mainly our custom branding to be applied to the source code. + + diff --git a/android/mozconfig-android b/android/mozconfig-android new file mode 100644 index 0000000..e69de29 diff --git a/browser/README.md b/browser/README.md deleted file mode 100644 index ff2b66f..0000000 --- a/browser/README.md +++ /dev/null @@ -1,5 +0,0 @@ -## Browser Files -This folder contains platform specific subfolders which houses the scripts and files required to compile LibreWolf on various platforms such as Linux, Windows, Mac and android. -All of the platforms are self explanatory with the exception of common. Common stores files common to all platforms, mainly our custom branding to be applied to the source code. - - diff --git a/browser/android/mozconfig-android b/browser/android/mozconfig-android deleted file mode 100644 index e69de29..0000000 diff --git a/browser/common/source_files/browser/branding/librewolf/VisualElements_150.png b/browser/common/source_files/browser/branding/librewolf/VisualElements_150.png deleted file mode 100644 index 3235418..0000000 Binary files a/browser/common/source_files/browser/branding/librewolf/VisualElements_150.png and /dev/null differ diff --git a/browser/common/source_files/browser/branding/librewolf/VisualElements_70.png b/browser/common/source_files/browser/branding/librewolf/VisualElements_70.png deleted file mode 100644 index 364e678..0000000 Binary files a/browser/common/source_files/browser/branding/librewolf/VisualElements_70.png and /dev/null differ diff --git a/browser/common/source_files/browser/branding/librewolf/background.png b/browser/common/source_files/browser/branding/librewolf/background.png deleted file mode 100644 index f46675d..0000000 Binary files a/browser/common/source_files/browser/branding/librewolf/background.png and /dev/null differ diff --git a/browser/common/source_files/browser/branding/librewolf/bgstub.jpg b/browser/common/source_files/browser/branding/librewolf/bgstub.jpg deleted file mode 100644 index 69cd6b8..0000000 Binary files a/browser/common/source_files/browser/branding/librewolf/bgstub.jpg and /dev/null differ diff --git a/browser/common/source_files/browser/branding/librewolf/bgstub_2x.jpg b/browser/common/source_files/browser/branding/librewolf/bgstub_2x.jpg deleted file mode 100644 index df23024..0000000 Binary files a/browser/common/source_files/browser/branding/librewolf/bgstub_2x.jpg and /dev/null differ diff --git a/browser/common/source_files/browser/branding/librewolf/branding.nsi b/browser/common/source_files/browser/branding/librewolf/branding.nsi deleted file mode 100644 index 36cc1d4..0000000 --- a/browser/common/source_files/browser/branding/librewolf/branding.nsi +++ /dev/null @@ -1,50 +0,0 @@ -# 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 -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -# NSIS branding defines for unofficial builds. -# The official release build branding.nsi is located in other-license/branding/firefox/ -# The nightly build branding.nsi is located in browser/installer/windows/nsis/ - -# BrandFullNameInternal is used for some registry and file system values -# instead of BrandFullName and typically should not be modified. -!define BrandFullNameInternal "LibreWolf" -!define BrandFullName "LibreWolf" -!define CompanyName "LibreWolf" -!define URLInfoAbout "https://www.libreWolf.gitlab.io" -!define HelpLink "https://github.com/LibreWolf-Browser" - -!define URLStubDownloadX86 "https://github.com/LibreWolf-Browser/LibreWolf/releases" -!define URLStubDownloadAMD64 "https://github.com/LibreWolf-Browser/LibreWolf/releases" -!define URLStubDownloadAArch64 "https://github.com/LibreWolf-Browser/LibreWolf/releases" -!define URLManualDownload "https://github.com/LibreWolf-Browser/LibreWolf/releases" -!define URLSystemRequirements "https://github.com/LibreWolf-Browser/LibreWolf" -!define Channel "unofficial" - -# The installer's certificate name and issuer expected by the stub installer -!define CertNameDownload "Mozilla Corporation" -!define CertIssuerDownload "DigiCert SHA2 Assured ID Code Signing CA" - -# Dialog units are used so the UI displays correctly with the system's DPI -# settings. -# The dialog units for the bitmap's dimensions should match exactly with the -# bitmap's width and height in pixels. -!define APPNAME_BMP_WIDTH_DU 159u -!define APPNAME_BMP_HEIGHT_DU 50u -!define INTRO_BLURB_WIDTH_DU "230u" -!define INTRO_BLURB_EDGE_DU "198u" -!define INTRO_BLURB_LTR_TOP_DU "16u" -!define INTRO_BLURB_RTL_TOP_DU "11u" -!define INSTALL_FOOTER_TOP_DU "-48u" - -# UI Colors that can be customized for each channel -!define FOOTER_CONTROL_TEXT_COLOR_NORMAL 0x000000 -!define FOOTER_CONTROL_TEXT_COLOR_FADED 0x999999 -!define FOOTER_BKGRD_COLOR 0xFFFFFF -!define INSTALL_FOOTER_TEXT_COLOR 0xFFFFFF -!define INTRO_BLURB_TEXT_COLOR 0xFFFFFF -!define INSTALL_BLURB_TEXT_COLOR 0xFFFFFF -!define INSTALL_PROGRESS_TEXT_COLOR_NORMAL 0xFFFFFF -!define COMMON_TEXT_COLOR_NORMAL 0xFFFFFF -!define COMMON_TEXT_COLOR_FADED 0xA1AAB3 -!define COMMON_BKGRD_COLOR 0x0F1B26 diff --git a/browser/common/source_files/browser/branding/librewolf/configure.sh b/browser/common/source_files/browser/branding/librewolf/configure.sh deleted file mode 100644 index 69a5b64..0000000 --- a/browser/common/source_files/browser/branding/librewolf/configure.sh +++ /dev/null @@ -1,9 +0,0 @@ -# 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 -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -MOZ_APP_NAME=librewolf -MOZ_APP_BASENAME="LibreWolf" -MOZ_APP_PROFILE=librewolf -MOZ_APP_VENDOR=LibreWolf - diff --git a/browser/common/source_files/browser/branding/librewolf/content/about-background.png b/browser/common/source_files/browser/branding/librewolf/content/about-background.png deleted file mode 100644 index 9d2aa7d..0000000 Binary files a/browser/common/source_files/browser/branding/librewolf/content/about-background.png and /dev/null differ diff --git a/browser/common/source_files/browser/branding/librewolf/content/about-logo.png b/browser/common/source_files/browser/branding/librewolf/content/about-logo.png deleted file mode 100644 index 3da143e..0000000 Binary files a/browser/common/source_files/browser/branding/librewolf/content/about-logo.png and /dev/null differ diff --git a/browser/common/source_files/browser/branding/librewolf/content/about-wordmark.svg b/browser/common/source_files/browser/branding/librewolf/content/about-wordmark.svg deleted file mode 100644 index 60b278d..0000000 --- a/browser/common/source_files/browser/branding/librewolf/content/about-wordmark.svg +++ /dev/null @@ -1,22 +0,0 @@ - - - - - diff --git a/browser/common/source_files/browser/branding/librewolf/content/about.png b/browser/common/source_files/browser/branding/librewolf/content/about.png deleted file mode 100644 index 58f4928..0000000 Binary files a/browser/common/source_files/browser/branding/librewolf/content/about.png and /dev/null differ diff --git a/browser/common/source_files/browser/branding/librewolf/content/aboutDialog.css b/browser/common/source_files/browser/branding/librewolf/content/aboutDialog.css deleted file mode 100644 index e6a1d9e..0000000 --- a/browser/common/source_files/browser/branding/librewolf/content/aboutDialog.css +++ /dev/null @@ -1,25 +0,0 @@ -/* 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 - * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ - -#aboutDialogContainer { - background-image: url("chrome://branding/content/about-background.png"); - background-repeat: no-repeat; - background-color: #00acff; - color: #fff; -} - -.text-link { - color: #fff !important; - text-decoration: underline; -} - -#rightBox { - /* this margin prevents text from overlapping the planet image */ - margin-left: 280px; - margin-right: 20px; -} - -#bottomBox { - background-color: rgba(0,0,0,.7); -} diff --git a/browser/common/source_files/browser/branding/librewolf/content/horizontal-lockup.svg b/browser/common/source_files/browser/branding/librewolf/content/horizontal-lockup.svg deleted file mode 100644 index 07dc4e0..0000000 --- a/browser/common/source_files/browser/branding/librewolf/content/horizontal-lockup.svg +++ /dev/null @@ -1,5 +0,0 @@ - - - \ No newline at end of file diff --git a/browser/common/source_files/browser/branding/librewolf/content/identity-icons-brand.svg b/browser/common/source_files/browser/branding/librewolf/content/identity-icons-brand.svg deleted file mode 100644 index 6c33113..0000000 --- a/browser/common/source_files/browser/branding/librewolf/content/identity-icons-brand.svg +++ /dev/null @@ -1,7 +0,0 @@ - - - - - diff --git a/browser/common/source_files/browser/branding/librewolf/content/jar.mn b/browser/common/source_files/browser/branding/librewolf/content/jar.mn deleted file mode 100644 index acb0c10..0000000 --- a/browser/common/source_files/browser/branding/librewolf/content/jar.mn +++ /dev/null @@ -1,18 +0,0 @@ -# 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 -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -browser.jar: -% content branding %content/branding/ contentaccessible=yes - content/branding/about.png - content/branding/about-background.png - content/branding/about-logo.png - content/branding/about-wordmark.svg - content/branding/icon16.png (../default16.png) - content/branding/icon32.png (../default32.png) - content/branding/icon48.png (../default48.png) - content/branding/icon64.png (../default64.png) - content/branding/icon128.png (../default128.png) - content/branding/identity-icons-brand.svg - content/branding/aboutDialog.css - content/branding/horizontal-lockup.svg diff --git a/browser/common/source_files/browser/branding/librewolf/content/moz.build b/browser/common/source_files/browser/branding/librewolf/content/moz.build deleted file mode 100644 index eb4454d..0000000 --- a/browser/common/source_files/browser/branding/librewolf/content/moz.build +++ /dev/null @@ -1,7 +0,0 @@ -# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*- -# vim: set filetype=python: -# 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 -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -JAR_MANIFESTS += ['jar.mn'] \ No newline at end of file diff --git a/browser/common/source_files/browser/branding/librewolf/default128.png b/browser/common/source_files/browser/branding/librewolf/default128.png deleted file mode 100644 index 8531e51..0000000 Binary files a/browser/common/source_files/browser/branding/librewolf/default128.png and /dev/null differ diff --git a/browser/common/source_files/browser/branding/librewolf/default16.png b/browser/common/source_files/browser/branding/librewolf/default16.png deleted file mode 100644 index f9896db..0000000 Binary files a/browser/common/source_files/browser/branding/librewolf/default16.png and /dev/null differ diff --git a/browser/common/source_files/browser/branding/librewolf/default32.png b/browser/common/source_files/browser/branding/librewolf/default32.png deleted file mode 100644 index 7876d4b..0000000 Binary files a/browser/common/source_files/browser/branding/librewolf/default32.png and /dev/null differ diff --git a/browser/common/source_files/browser/branding/librewolf/default48.png b/browser/common/source_files/browser/branding/librewolf/default48.png deleted file mode 100644 index 00e6755..0000000 Binary files a/browser/common/source_files/browser/branding/librewolf/default48.png and /dev/null differ diff --git a/browser/common/source_files/browser/branding/librewolf/default64.png b/browser/common/source_files/browser/branding/librewolf/default64.png deleted file mode 100644 index f3a5079..0000000 Binary files a/browser/common/source_files/browser/branding/librewolf/default64.png and /dev/null differ diff --git a/browser/common/source_files/browser/branding/librewolf/disk.icns b/browser/common/source_files/browser/branding/librewolf/disk.icns deleted file mode 100644 index 718f1a3..0000000 Binary files a/browser/common/source_files/browser/branding/librewolf/disk.icns and /dev/null differ diff --git a/browser/common/source_files/browser/branding/librewolf/document.icns b/browser/common/source_files/browser/branding/librewolf/document.icns deleted file mode 100644 index 0e4bcb8..0000000 Binary files a/browser/common/source_files/browser/branding/librewolf/document.icns and /dev/null differ diff --git a/browser/common/source_files/browser/branding/librewolf/document.ico b/browser/common/source_files/browser/branding/librewolf/document.ico deleted file mode 100644 index 584a0a1..0000000 Binary files a/browser/common/source_files/browser/branding/librewolf/document.ico and /dev/null differ diff --git a/browser/common/source_files/browser/branding/librewolf/dsstore b/browser/common/source_files/browser/branding/librewolf/dsstore deleted file mode 100644 index 2d11482..0000000 Binary files a/browser/common/source_files/browser/branding/librewolf/dsstore and /dev/null differ diff --git a/browser/common/source_files/browser/branding/librewolf/firefox.VisualElementsManifest.xml b/browser/common/source_files/browser/branding/librewolf/firefox.VisualElementsManifest.xml deleted file mode 100644 index 7654e0a..0000000 --- a/browser/common/source_files/browser/branding/librewolf/firefox.VisualElementsManifest.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - diff --git a/browser/common/source_files/browser/branding/librewolf/firefox.icns b/browser/common/source_files/browser/branding/librewolf/firefox.icns deleted file mode 100644 index de55816..0000000 Binary files a/browser/common/source_files/browser/branding/librewolf/firefox.icns and /dev/null differ diff --git a/browser/common/source_files/browser/branding/librewolf/firefox.ico b/browser/common/source_files/browser/branding/librewolf/firefox.ico deleted file mode 100644 index 5217a6c..0000000 Binary files a/browser/common/source_files/browser/branding/librewolf/firefox.ico and /dev/null differ diff --git a/browser/common/source_files/browser/branding/librewolf/firefox64.ico b/browser/common/source_files/browser/branding/librewolf/firefox64.ico deleted file mode 100644 index 30a72f1..0000000 Binary files a/browser/common/source_files/browser/branding/librewolf/firefox64.ico and /dev/null differ diff --git a/browser/common/source_files/browser/branding/librewolf/locales/en-US/brand.dtd b/browser/common/source_files/browser/branding/librewolf/locales/en-US/brand.dtd deleted file mode 100644 index 8375aaa..0000000 --- a/browser/common/source_files/browser/branding/librewolf/locales/en-US/brand.dtd +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - diff --git a/browser/common/source_files/browser/branding/librewolf/locales/en-US/brand.ftl b/browser/common/source_files/browser/branding/librewolf/locales/en-US/brand.ftl deleted file mode 100644 index 9627fd6..0000000 --- a/browser/common/source_files/browser/branding/librewolf/locales/en-US/brand.ftl +++ /dev/null @@ -1,22 +0,0 @@ -# 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 -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -## Firefox Brand -## -## Firefox must be treated as a brand, and kept in English. -## It cannot be: -## - Declined to adapt to grammatical case. -## - Transliterated. -## - Translated. -## -## Reference: https://www.mozilla.org/styleguide/communications/translation/ - --brand-shorter-name = LibreWolf --brand-short-name = LibreWolf --brand-full-name = LibreWolf -# This brand name can be used in messages where the product name needs to -# remain unchanged across different versions (Nightly, Beta, etc.). --brand-product-name = LibreWolf --vendor-short-name = LibreWolf -trademarkInfo = { " " } diff --git a/browser/common/source_files/browser/branding/librewolf/locales/en-US/brand.properties b/browser/common/source_files/browser/branding/librewolf/locales/en-US/brand.properties deleted file mode 100644 index 40c64c4..0000000 --- a/browser/common/source_files/browser/branding/librewolf/locales/en-US/brand.properties +++ /dev/null @@ -1,14 +0,0 @@ -# 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 -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -brandShorterName=LibreWolf -brandShortName=LibreWolf -brandFullName=LibreWolf -# LOCALIZATION NOTE(brandProductName): -# This brand name can be used in messages where the product name needs to -# remain unchanged across different versions (Nightly, Beta, etc.). -brandProductName=LibreWolf -vendorShortName=LibreWolf - -syncBrandShortName=LibreWolf Sync diff --git a/browser/common/source_files/browser/branding/librewolf/locales/jar.mn b/browser/common/source_files/browser/branding/librewolf/locales/jar.mn deleted file mode 100644 index d007b20..0000000 --- a/browser/common/source_files/browser/branding/librewolf/locales/jar.mn +++ /dev/null @@ -1,13 +0,0 @@ -#filter substitution -# 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 -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -[localization] @AB_CD@.jar: - branding (en-US/**/*.ftl) - -@AB_CD@.jar: -% locale branding @AB_CD@ %locale/branding/ -# Unofficial branding only exists in en-US - locale/branding/brand.dtd (en-US/brand.dtd) - locale/branding/brand.properties (en-US/brand.properties) diff --git a/browser/common/source_files/browser/branding/librewolf/locales/moz.build b/browser/common/source_files/browser/branding/librewolf/locales/moz.build deleted file mode 100644 index 8bad131..0000000 --- a/browser/common/source_files/browser/branding/librewolf/locales/moz.build +++ /dev/null @@ -1,9 +0,0 @@ -# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*- -# vim: set filetype=python: -# 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 -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -DEFINES['MOZ_DISTRIBUTION_ID_UNQUOTED'] = CONFIG['MOZ_DISTRIBUTION_ID'] - -JAR_MANIFESTS += ['jar.mn'] \ No newline at end of file diff --git a/browser/common/source_files/browser/branding/librewolf/moz.build b/browser/common/source_files/browser/branding/librewolf/moz.build deleted file mode 100644 index 9045cee..0000000 --- a/browser/common/source_files/browser/branding/librewolf/moz.build +++ /dev/null @@ -1,13 +0,0 @@ -# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*- -# vim: set filetype=python: -# 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 -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -DIRS += ['content', 'locales'] - -DIST_SUBDIR = 'browser' -export('DIST_SUBDIR') - -include('../branding-common.mozbuild') -FirefoxBranding() diff --git a/browser/common/source_files/browser/branding/librewolf/newtab.ico b/browser/common/source_files/browser/branding/librewolf/newtab.ico deleted file mode 100644 index a9b37c0..0000000 Binary files a/browser/common/source_files/browser/branding/librewolf/newtab.ico and /dev/null differ diff --git a/browser/common/source_files/browser/branding/librewolf/newwindow.ico b/browser/common/source_files/browser/branding/librewolf/newwindow.ico deleted file mode 100644 index 5537207..0000000 Binary files a/browser/common/source_files/browser/branding/librewolf/newwindow.ico and /dev/null differ diff --git a/browser/common/source_files/browser/branding/librewolf/pbmode.ico b/browser/common/source_files/browser/branding/librewolf/pbmode.ico deleted file mode 100644 index 47677c1..0000000 Binary files a/browser/common/source_files/browser/branding/librewolf/pbmode.ico and /dev/null differ diff --git a/browser/common/source_files/browser/branding/librewolf/pref/firefox-branding.js b/browser/common/source_files/browser/branding/librewolf/pref/firefox-branding.js deleted file mode 100644 index 056473d..0000000 --- a/browser/common/source_files/browser/branding/librewolf/pref/firefox-branding.js +++ /dev/null @@ -1,6 +0,0 @@ -/* 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 - * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ - - - diff --git a/browser/common/source_files/browser/branding/librewolf/wizHeader.bmp b/browser/common/source_files/browser/branding/librewolf/wizHeader.bmp deleted file mode 100644 index c818e1f..0000000 Binary files a/browser/common/source_files/browser/branding/librewolf/wizHeader.bmp and /dev/null differ diff --git a/browser/common/source_files/browser/branding/librewolf/wizHeaderRTL.bmp b/browser/common/source_files/browser/branding/librewolf/wizHeaderRTL.bmp deleted file mode 100644 index 2ac24b9..0000000 Binary files a/browser/common/source_files/browser/branding/librewolf/wizHeaderRTL.bmp and /dev/null differ diff --git a/browser/common/source_files/browser/branding/librewolf/wizWatermark.bmp b/browser/common/source_files/browser/branding/librewolf/wizWatermark.bmp deleted file mode 100644 index 05f0e7f..0000000 Binary files a/browser/common/source_files/browser/branding/librewolf/wizWatermark.bmp and /dev/null differ diff --git a/browser/common/source_files/mozconfig b/browser/common/source_files/mozconfig deleted file mode 100644 index 4d5eb63..0000000 --- a/browser/common/source_files/mozconfig +++ /dev/null @@ -1,29 +0,0 @@ -# COMPILE OPTIONS ####################################################################### -# This is for the desktop version of librewolf -ac_add_options --enable-application=browser - -# This supposedly speeds up compilation (We test through dogfooding anyway) -ac_add_options --disable-tests -ac_add_options --disable-debug - -# Folder to output the build files: -mk_add_options MOZ_OBJDIR=./obj_BUILD_OUTPUT - -# BRANDING OPTIONS ###################################################################### -# Setting the branding options -ac_add_options --with-branding=browser/branding/librewolf -ac_add_options --with-distribution-id=io.gitlab.librewolf - -# LIBREWOLF SPECIFIC OPTIONS ############################################################ -# enables ALSA -ac_add_options --enable-alsa - -# Disables crash reporting, telemetry and other data gathering tools -mk_add_options MOZ_CRASHREPORTER=0 -mk_add_options MOZ_DATA_REPORTING=0 -mk_add_options MOZ_SERVICES_HEALTHREPORT=0 -mk_add_options MOZ_TELEMETRY_REPORTING=0 - - - - diff --git a/browser/linux/README.md b/browser/linux/README.md deleted file mode 100644 index f09f6af..0000000 --- a/browser/linux/README.md +++ /dev/null @@ -1,14 +0,0 @@ -This folder contains all the required material to build the browser on Linux platforms. - -### Requirements -* Ubuntu or Linux Mint (Bionic or later) - -### Notes -* As this script installs files during the build, it is recommended to run this script in a VM or installation dedicated to building. -* You will occassionally need to enter your sudo password. Running this script as root has not been tested -* This script has been tested with Linux Mint 19.1 -* The flatpak build is not ready yet. - -### Instructions -* Run build.sh inside this folder. -* Packages will be saved in the repository root folder. diff --git a/browser/linux/appimage/build_appimage.sh b/browser/linux/appimage/build_appimage.sh deleted file mode 100755 index c3e53d0..0000000 --- a/browser/linux/appimage/build_appimage.sh +++ /dev/null @@ -1,44 +0,0 @@ -#!/bin/sh -printf "\n\n------------------------------------ APPIMAGE BUILD -----------------------------------------\n"; - -# Aborts the script upon any faliure -set -e; - -# Sets up script variables -BINARY_TARBALL=$1 -APPIMAGE_FILE=$2 -_SCRIPT_FOLDER=$(realpath $(dirname $0)); -_BINARY_TARBALL_EXTRACTED_FOLDER=$_SCRIPT_FOLDER/librewolf; -_BUILD_APPIMAGE_FILE=$_SCRIPT_FOLDER/LibreWolf*.AppImage; -_APPIMAGETOOL_DOWNLOAD_URL=https://github.com/AppImage/AppImageKit/releases/latest/download/appimagetool-x86_64.AppImage; -_APPIMAGETOOL_EXTRACTED_FOLDER=$_SCRIPT_FOLDER/squashfs-root; -_APPIMAGETOOL_FILE=$_SCRIPT_FOLDER/appimagetool; -_APPIMAGE_CONTENT_FOLDER=$_SCRIPT_FOLDER/content - -# Extracts the binary tarball -printf "\nExtracting librewolf binary tarball\n"; -mkdir $_BINARY_TARBALL_EXTRACTED_FOLDER; -tar -xvf $BINARY_TARBALL -C $_BINARY_TARBALL_EXTRACTED_FOLDER; - -# Copy appimage resources to main tarball -printf "Copying AppImage resources to binary tarball folder\n"; -cp -vrT $_APPIMAGE_CONTENT_FOLDER $_BINARY_TARBALL_EXTRACTED_FOLDER; - -# Downloads appimage tool -printf "\nDownloading AppImage Tool\n"; -apt -qq update && apt -qqy install wget; -wget $_APPIMAGETOOL_DOWNLOAD_URL -O $_APPIMAGETOOL_FILE; -chmod +x $_APPIMAGETOOL_FILE; -$_APPIMAGETOOL_FILE --appimage-mount $_APPIMAGETOOL_EXTRACTED_FOLDER; -rm -f $_APPIMAGETOOL_FILE; - -# Generate AppImage -printf "\nGenerating AppImage\n"; -ARCH=x86_64 $_APPIMAGETOOL_EXTRACTED_FOLDER/AppRun $_BINARY_TARBALL_EXTRACTED_FOLDER; -rm -rf $_BINARY_TARBALL_EXTRACTED_FOLDER; -rm -rf $_APPIMAGETOOL_EXTRACTED_FOLDER; -chmod +x $_BUILD_APPIMAGE_FILE; - -# Move AppImage to specified location -printf "\nMoving AppImage to specified location\n"; -mv $_BUILD_APPIMAGE_FILE $APPIMAGE_FILE; diff --git a/browser/linux/appimage/content/.DirIcon b/browser/linux/appimage/content/.DirIcon deleted file mode 120000 index 2653ffb..0000000 --- a/browser/linux/appimage/content/.DirIcon +++ /dev/null @@ -1 +0,0 @@ -librewolf.svg \ No newline at end of file diff --git a/browser/linux/appimage/content/AppRun b/browser/linux/appimage/content/AppRun deleted file mode 100755 index e347dcd..0000000 --- a/browser/linux/appimage/content/AppRun +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/sh -SELF=$(readlink -f "$0") -HERE=${SELF%/*} -export PATH="${HERE}:${HERE}/usr/bin/:${HERE}/usr/sbin/:${HERE}/usr/games/:${HERE}/bin/:${HERE}/sbin/${PATH:+:$PATH}" -export LD_LIBRARY_PATH="${HERE}/usr/lib/:${HERE}/usr/lib/i386-linux-gnu/:${HERE}/usr/lib/x86_64-linux-gnu/:${HERE}/usr/lib32/:${HERE}/usr/lib64/:${HERE}/lib/:${HERE}/lib/i386-linux-gnu/:${HERE}/lib/x86_64-linux-gnu/:${HERE}/lib32/:${HERE}/lib64/${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}" -export PYTHONPATH="${HERE}/usr/share/pyshared/${PYTHONPATH:+:$PYTHONPATH}" -export XDG_DATA_DIRS="${HERE}/usr/share/${XDG_DATA_DIRS:+:$XDG_DATA_DIRS}" -export PERLLIB="${HERE}/usr/share/perl5/:${HERE}/usr/lib/perl5/${PERLLIB:+:$PERLLIB}" -export GSETTINGS_SCHEMA_DIR="${HERE}/usr/share/glib-2.0/schemas/${GSETTINGS_SCHEMA_DIR:+:$GSETTINGS_SCHEMA_DIR}" -export QT_PLUGIN_PATH="${HERE}/usr/lib/qt4/plugins/:${HERE}/usr/lib/i386-linux-gnu/qt4/plugins/:${HERE}/usr/lib/x86_64-linux-gnu/qt4/plugins/:${HERE}/usr/lib32/qt4/plugins/:${HERE}/usr/lib64/qt4/plugins/:${HERE}/usr/lib/qt5/plugins/:${HERE}/usr/lib/i386-linux-gnu/qt5/plugins/:${HERE}/usr/lib/x86_64-linux-gnu/qt5/plugins/:${HERE}/usr/lib32/qt5/plugins/:${HERE}/usr/lib64/qt5/plugins/${QT_PLUGIN_PATH:+:$QT_PLUGIN_PATH}" -EXEC=$(grep -e '^Exec=.*' "${HERE}"/*.desktop | head -n 1 | cut -d "=" -f 2 | cut -d " " -f 1) -exec "${EXEC}" "$@" diff --git a/browser/linux/appimage/content/librewolf.desktop b/browser/linux/appimage/content/librewolf.desktop deleted file mode 100644 index 3e36765..0000000 --- a/browser/linux/appimage/content/librewolf.desktop +++ /dev/null @@ -1,6 +0,0 @@ -[Desktop Entry] -Name=LibreWolf -Exec=librewolf -Icon=librewolf -Type=Application -Categories=Network; diff --git a/browser/linux/appimage/content/librewolf.svg b/browser/linux/appimage/content/librewolf.svg deleted file mode 100644 index 2c6262a..0000000 --- a/browser/linux/appimage/content/librewolf.svg +++ /dev/null @@ -1,90 +0,0 @@ - - - - - - - - - - image/svg+xml - - - - - - - - - - - diff --git a/browser/linux/binary_tarball/build_tarball.sh b/browser/linux/binary_tarball/build_tarball.sh deleted file mode 100755 index 83da436..0000000 --- a/browser/linux/binary_tarball/build_tarball.sh +++ /dev/null @@ -1,22 +0,0 @@ -#!/bin/sh -printf "\n------------------------------------- BINARY TARBALL BUILD ------------------------------------------\n"; - -# Aborts the script upon any faliure -set -e; - -# Sets up script variables -BINARY_TARBALL=$1; -_SCRIPT_FOLDER=$(realpath $(dirname $0)); -_REPOSITORY_FOLDER=$(realpath $_SCRIPT_FOLDER/../../../); -_BINARY_TARBALL_SOURCE_FOLDER=$_SCRIPT_FOLDER/compile; -_BINARY_TARBALL_SOURCE_CONTENT_FOLDER=$_REPOSITORY_FOLDER/browser/common/source_files/; -_BINARY_TARBALL_SETTINGS_FOLDER=$_REPOSITORY_FOLDER/settings; -_BINARY_TARBALL_LAUNCH_SCRIPT=$_SCRIPT_FOLDER/binary_tarball/content/launch_librewolf.sh; - -# Executes the build -$_SCRIPT_FOLDER/scripts/1_Install_Dependencies.sh; -$_SCRIPT_FOLDER/scripts/2_Download_Source_Code.sh $_BINARY_TARBALL_SOURCE_FOLDER; -$_SCRIPT_FOLDER/scripts/3_Configure_Source_Code.sh $_BINARY_TARBALL_SOURCE_FOLDER $_BINARY_TARBALL_SOURCE_CONTENT_FOLDER; -$_SCRIPT_FOLDER/scripts/4_Build_Binary_Tarball.sh $_BINARY_TARBALL_SOURCE_FOLDER $BINARY_TARBALL; -$_SCRIPT_FOLDER/scripts/5_Configure_Binary_Tarball.sh $BINARY_TARBALL $_BINARY_TARBALL_SETTINGS_FOLDER $_BINARY_TARBALL_LAUNCH_SCRIPT; - diff --git a/browser/linux/binary_tarball/content/launch_librewolf.sh b/browser/linux/binary_tarball/content/launch_librewolf.sh deleted file mode 100755 index 26c1bd5..0000000 --- a/browser/linux/binary_tarball/content/launch_librewolf.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/usr/bin/env bash - -INSTALL_FOLDER=$(realpath $(dirname $0)); -INSTALL_SETTINGS_FOLDER=$INSTALL_FOLDER/settings; -PROFILE_SETTINGS_FOLDER=$HOME/.librewolf/settings; - -# Adds option to install settings if argument is passed -if [ "$1" = "--install-settings" ]; then - mkdir -p $PROFILE_SETTINGS_FOLDER; - cp $INSTALL_SETTINGS_FOLDER/defaults/pref/local-settings.js $PROFILE_SETTINGS_FOLDER/local-settings.js; - cp $INSTALL_SETTINGS_FOLDER/distribution/policies.json $PROFILE_SETTINGS_FOLDER/policies.json; - cp $INSTALL_SETTINGS_FOLDER/librewolf.cfg $PROFILE_SETTINGS_FOLDER/librewolf.cfg; - cp $INSTALL_SETTINGS_FOLDER/toggle-settings.sh $PROFILE_SETTINGS_FOLDER/toggle-settings.sh; -fi - -# Sets up settings links -mkdir -p $INSTALL_FOLDER/defaults/pref/; -mkdir -p $INSTALL_FOLDER/distribution/; -ln -s $PROFILE_SETTINGS_FOLDER/local-settings.js $INSTALL_FOLDER/defaults/pref/local-settings.js; -ln -s $PROFILE_SETTINGS_FOLDER/policies.json $INSTALL_FOLDER/distribution/policies.json; -ln -s $PROFILE_SETTINGS_FOLDER/librewolf.cfg $INSTALL_FOLDER/librewolf.cfg; - -# Sets env variables to disable dedicated profiles (which breaks some packaging methods) -export MOZ_LEGACY_PROFILES=1; -export SNAP_NAME="firefox"; - -# Launches librewolf -chmod +x $INSTALL_FOLDER/librewolf; -$INSTALL_FOLDER/librewolf "$@"; - - - diff --git a/browser/linux/binary_tarball/scripts/1_Install_Dependencies.sh b/browser/linux/binary_tarball/scripts/1_Install_Dependencies.sh deleted file mode 100755 index c241e6b..0000000 --- a/browser/linux/binary_tarball/scripts/1_Install_Dependencies.sh +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/sh -printf "\n\n-------------------------------------- DEPENDENCY INSTALLATION ---------------------------------------------\n"; - -# Setup Script Variables -_DEPENDENCIES="mercurial wget"; - -# Installs Dependencies -printf "\nInstalling dependencies\n"; -apt-get -qq update; -apt-get -qqy install $_DEPENDENCIES; diff --git a/browser/linux/binary_tarball/scripts/2_Download_Source_Code.sh b/browser/linux/binary_tarball/scripts/2_Download_Source_Code.sh deleted file mode 100755 index ac022a1..0000000 --- a/browser/linux/binary_tarball/scripts/2_Download_Source_Code.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/sh -printf "\n\n--------------------------------- SOURCE CODE DOWNLOAD --------------------------------------\n"; - -# Setup Script Variables -SOURCE_FOLDER=$1; -_SOURCE_CODE_URL="https://hg.mozilla.org/releases/mozilla-release"; - -# Clone Firefox Source Code -printf "\nCloning Firefox Source Code\n"; -hg clone $_SOURCE_CODE_URL $SOURCE_FOLDER; - diff --git a/browser/linux/binary_tarball/scripts/3_Configure_Source_Code.sh b/browser/linux/binary_tarball/scripts/3_Configure_Source_Code.sh deleted file mode 100755 index 9adc430..0000000 --- a/browser/linux/binary_tarball/scripts/3_Configure_Source_Code.sh +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/sh -printf "\n\n------------------------------ FINAL PREBUILD CONFIGURATION ---------------------------------\n"; - -# Setup Script Variables -SOURCE_CODE_FOLDER=$1; -SOURCE_CODE_CUSTOMIZATION_FOLDER=$2; -_POCKET_SED_STRING="s/'pocket'/#'pocket'/g"; -_POCKET_FILE=$SOURCE_CODE_FOLDER/browser/components/moz.build; - -# Copy Source Code Changes to Source Code -printf "\nCopying branding and source code changes to firefox source code\n"; -cp -r $SOURCE_CODE_CUSTOMIZATION_FOLDER/* $SOURCE_CODE_FOLDER/; - -# Disables Pocket -printf "\nDisabling Pocket\n"; -sed -i $_POCKET_SED_STRING $_POCKET_FILE; - diff --git a/browser/linux/binary_tarball/scripts/4_Build_Binary_Tarball.sh b/browser/linux/binary_tarball/scripts/4_Build_Binary_Tarball.sh deleted file mode 100755 index 5f3ebe5..0000000 --- a/browser/linux/binary_tarball/scripts/4_Build_Binary_Tarball.sh +++ /dev/null @@ -1,34 +0,0 @@ -#!/bin/sh -printf "\n\n--------------------------------------- BUILD -----------------------------------------------\n"; - -# Setup Script Variables -SOURCE_FOLDER=$1; -OUTPUT_TARBALL=$2; -_SOURCE_CODE_BINARY_TARBALL_LOCATION="./obj*/dist/librewolf*.tar.bz2"; - -# Prevents build from breaking in CI/CD environments -export SHELL=/bin/bash; - -# Changes current folder to the source code folder -cd $SOURCE_FOLDER; - -# Runs bootstrapper to install dependencies -printf "\nRunning bootstrapper to install build dependencies (using ./mach script within source code)\n"; -./mach bootstrap --application-choice=browser --no-interactive; - -# Executes the actual build -printf "\nBuilding LibreWolf\n"; -./mach build; - -# Packages the build into a binary tarball -printf "\nPackaging LibreWolf\n"; -./mach package; - -# Moves the packaged tarball to the specified location -printf "\nMoving Binary Tarball to output location\n"; -mv $_SOURCE_CODE_BINARY_TARBALL_LOCATION $OUTPUT_TARBALL; - -# Deletes the source code -printf "\nDeleting source code\n"; -rm -rf $SOURCE_FOLDER; - diff --git a/browser/linux/binary_tarball/scripts/5_Configure_Binary_Tarball.sh b/browser/linux/binary_tarball/scripts/5_Configure_Binary_Tarball.sh deleted file mode 100755 index 293dc16..0000000 --- a/browser/linux/binary_tarball/scripts/5_Configure_Binary_Tarball.sh +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/sh -printf "\n\n--------------------------------- SETTINGS INTEGRATION --------------------------------------\n"; - -# Setup Script Variables -BINARY_TARBALL=$1; -SETTINGS_FOLDER=$2; -LAUNCHER_SCRIPT=$3; -_EXTRACTED_TARBALL_FOLDER=./librewolf; - -# Extracts the binary tarball -printf "\nExtracting librewolf binary tarball\n"; -tar -xvf $BINARY_TARBALL; - -# Adds the librefox config files to the packaged tarball -printf "\nCopying librewolf settings to extracted binary tarball\n"; -cp -r $SETTINGS_FOLDER $_EXTRACTED_TARBALL_FOLDER/settings; -cp $LAUNCHER_SCRIPT $_EXTRACTED_TARBALL_FOLDER/launch_librewolf.sh; - -# Repacks the binary tarball -printf "\nRecompressing binary tarball\n"; -tar -jcvf $BINARY_TARBALL $_EXTRACTED_TARBALL_FOLDER; - - diff --git a/browser/linux/binary_tarball/toggle-settings.sh b/browser/linux/binary_tarball/toggle-settings.sh deleted file mode 100644 index ff46bde..0000000 --- a/browser/linux/binary_tarball/toggle-settings.sh +++ /dev/null @@ -1,21 +0,0 @@ -#!/usr/bin/env bash - -# Exit script with a non-zero exit code if: -# - any command fails (-e | --errexit) -# - any variable is unset (-u | --nounset) -# - a part of a piped sequence fails (-o pipefail) -set -euo pipefail - -SCRIPT_FOLDER=$(realpath $(dirname $0)); - -# Enable settings ------------------------------------------------------------------------------------------ -if [[ "${1}" = "--enable" ]]; then - mv "${SCRIPT_FOLDER}/[DISABLED] local-settings.js" "${SCRIPT_FOLDER}/local-settings.js"; - mv "${SCRIPT_FOLDER}/[DISABLED] policies.json" "${SCRIPT_FOLDER}/policies.json"; - mv "${SCRIPT_FOLDER}/[DISABLED] librewolf.cfg" "${SCRIPT_FOLDER}/librewolf.cfg"; -# Disable settings ------------------------------------------------------------------------------------------ -elif [[ "${1}" = "--disable" ]]; then - mv "${SCRIPT_FOLDER}/local-settings.js" "${SCRIPT_FOLDER}/[DISABLED] local-settings.js"; - mv "${SCRIPT_FOLDER}/policies.json" "${SCRIPT_FOLDER}/[DISABLED] policies.json"; - mv "${SCRIPT_FOLDER}/librewolf.cfg" "${SCRIPT_FOLDER}/[DISABLED] librewolf.cfg"; -fi diff --git a/browser/linux/build.sh b/browser/linux/build.sh deleted file mode 100755 index 850e8ad..0000000 --- a/browser/linux/build.sh +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/sh -printf "\n------------------------------------- SCRIPT SETUP ------------------------------------------\n"; - -# Aborts the script upon any faliure -set -e; - -# Sets up script variables -SCRIPT_FOLDER=$(realpath $(dirname $0)); -REPOSITORY_FOLDER=$(realpath $SCRIPT_FOLDER/../../); -BINARY_TARBALL=$REPOSITORY_FOLDER/LibreWolf.tar.bz2; -APPIMAGE_FILE=$REPOSITORY_FOLDER/LibreWolf.AppImage; -FLATPAK_REPO=$REPOSITORY_FOLDER/librewolf-flatpak-repo; -FLATPAK_BUNDLE=$REPOSITORY_FOLDER/LibreWolf.flatpak; - -$SCRIPT_FOLDER/binary_tarball/build_tarball.sh $BINARY_TARBALL; -$SCRIPT_FOLDER/appimage/build_appimage.sh $BINARY_TARBALL $APPIMAGE_FILE; -$SCRIPT_FOLDER/flatpak/build_flatpak.sh $BINARY_TARBALL $FLATPAK_REPO $FLATPAK_BUNDLE; - - - diff --git a/browser/linux/flatpak/build_flatpak.sh b/browser/linux/flatpak/build_flatpak.sh deleted file mode 100755 index bebf131..0000000 --- a/browser/linux/flatpak/build_flatpak.sh +++ /dev/null @@ -1,61 +0,0 @@ -#!/bin/sh -printf "\n\n---------------------------------------- FLATPAK BUILD --------------------------------------------\n"; - -# Aborts the script upon any faliure -set -e; - -# Setup Script Variables -BINARY_TARBALL=$1; -FLATPAK_REPO=$2; -FLATPAK_BUNDLE=$3; -_SCRIPT_FOLDER=$(realpath $(dirname $0)); -_APT_SOURCE_LIST=/etc/apt/source.list; -_APT_REPO='deb http://ppa.launchpad.net/alexlarsson/flatpak/ubuntu bionic main' -_APT_REPO_KEY=FA577F07; -_APT_PACKAGES_TO_INSTALL="flatpak flatpak-builder"; -_FLATHUB_REPO="flathub https://flathub.org/repo/flathub.flatpakrepo"; -_FLATHUB_PACKAGES_TO_INSTALL="org.gnome.Platform/x86_64/3.32 org.gnome.Sdk/x86_64/3.32"; -_EXTRACTED_BINARY_TARBALL_FOLDER=./librewolf -_FLATPAK_JSON_FILE=$_SCRIPT_FOLDER/content/io.gitlab.LibreWolf.json; -_FLATPAK_BUILD_SOURCE_FOLDER=./source; -_FLATPAK_BUILD_FOLDER=build-dir; - - -# Install flatpak -printf "\nInstalling flatpak\n"; -echo $_APT_REPO >> $_APT_SOURCE_LIST; -apt-get -qq update && apt-get -qqy install gnupg2 && apt-key adv --keyserver keyserver.ubuntu.com --recv-keys $_APT_REPO_KEY; -apt-get -qq update; -apt-get -qqy install $_APT_PACKAGES_TO_INSTALL; - -# Install build dependencies -printf "\nInstalling flatpak build dependencies\n"; -flatpak remote-add --if-not-exists $_FLATHUB_REPO; -flatpak install -y flathub $_FLATHUB_PACKAGES_TO_INSTALL; - -# Extracts the binary tarball -printf "\nExtracting librewolf binary tarball\n"; -tar -xvf $BINARY_TARBALL; - -# Prepare for flatpak build -printf "\nPreparing files for flatpak build\n"; -mkdir $_FLATPAK_BUILD_SOURCE_FOLDER && mv $_EXTRACTED_BINARY_TARBALL_FOLDER $_FLATPAK_BUILD_SOURCE_FOLDER/librewolf; - -# Build Repo -printf "\nBuilding flatpak repository\n"; -cp "$_FLATPAK_JSON_FILE" ./; -flatpak-builder --repo="$FLATPAK_REPO" "$_FLATPAK_BUILD_FOLDER" io.gitlab.LibreWolf.json; - -# Build bundle -printf "\nBuilding flatpak bundle\n"; -flatpak build-bundle $FLATPAK_REPO $FLATPAK_BUNDLE io.gitlab.LibreWolf master; - -# Clean up flatpak files -printf "\nCleaning up flatpak related files\n"; -rm -rf $_FLATPAK_BUILD_FOLDER; -rm -rf $_FLATPAK_BUILD_SOURCE_FOLDER; -rm -rf ./.flatpak-builder; - -# Delete the extracted binary tarball folder -printf "\nDeleting extracted binary tarball folder\n"; -rm -rf $_EXTRACTED_BINARY_TARBALL_FOLDER; diff --git a/browser/linux/flatpak/content/io.gitlab.LibreWolf.json b/browser/linux/flatpak/content/io.gitlab.LibreWolf.json deleted file mode 100644 index 0e2b549..0000000 --- a/browser/linux/flatpak/content/io.gitlab.LibreWolf.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "app-id": "io.gitlab.LibreWolf", - "runtime": "org.gnome.Platform", - "runtime-version": "3.32", - "sdk": "org.gnome.Sdk", - "command": "librewolf", - "modules": [{ - "name": "librewolf", - "buildsystem": "simple", - "build-commands": [ - "mkdir -p /app/share && mv librewolf -t /app/share", - "mkdir -p /app/bin && ln -s /app/share/librewolf/librewolf /app/bin/" - ], - "sources": [{ - "type": "dir", - "path": "source" - }] - }], - "finish-args": [ - "--share=ipc", "--socket=x11", /* X11 + XShm access */ - "--socket=wayland", /* Wayland access */ - "--filesystem=home:rw", /* We want full fs access so we can read the files */ - "--share=network" /* Needs to talk to the network: */ - ] -} diff --git a/browser/mac/install_script.txt b/browser/mac/install_script.txt deleted file mode 100644 index d1f5970..0000000 --- a/browser/mac/install_script.txt +++ /dev/null @@ -1 +0,0 @@ -Users//Library/Application Support/LibreWolf/Profiles/xxxxxxxx.default diff --git a/browser/mac/package_macos.sh b/browser/mac/package_macos.sh deleted file mode 100755 index e4b2be9..0000000 --- a/browser/mac/package_macos.sh +++ /dev/null @@ -1,46 +0,0 @@ -#!/bin/bash - -# Usage: ./package_macos.sh /path/to/Firefox.dmg [--install] -# If `--install` is passed, will copy Librefox.app into /Applications. -# Otherwise, Librefox.dmg will be created next to Firefox.dmg - -repo=$(git rev-parse --show-toplevel) - -vol=$(hdiutil attach "$1" -shadow | tail -n 1 | cut -f 3) -app="$(basename "$vol").app" - -cp "$repo/packaging/mac/background.png" "$vol/.background/" - -cd "$vol" -codesign --remove-signature "$app" - -cd "$app/Contents" -rm -rf _CodeSignature Library/LaunchServices/org.mozilla.updater - -cd MacOS -rm -rf plugin-container.app/Contents/_CodeSignature \ - crashreporter.app \ - updater.app - -cd ../Resources -rm -rf update-settings.ini updater.ini -cp -R "$repo/librefox/." . - -cd browser/features -rm -rf aushelper@mozilla.org.xpi \ - firefox@getpocket.com.xpi \ - onboarding@mozilla.org.xpi - -if [ "$2" == "--install" ]; then - cd "$vol" - cp -R "$app" /Applications/Librefox.app -fi - -cd "$repo" -hdiutil detach "$vol" - -if [ "$2" != "--install" ]; then - out_dir=$(dirname "$1") - rm -f "$out_dir/Librefox.dmg" - hdiutil convert -format UDZO -o "$out_dir/Librefox.dmg" "$1" -shadow -fi diff --git a/browser/windows/install_script.txt b/browser/windows/install_script.txt deleted file mode 100644 index 081cb68..0000000 --- a/browser/windows/install_script.txt +++ /dev/null @@ -1 +0,0 @@ -#C:\Users\\AppData\Roaming\LibreWolf\Profiles\xxxxxxxx.default \ No newline at end of file diff --git a/common/source_files/browser/branding/librewolf/VisualElements_150.png b/common/source_files/browser/branding/librewolf/VisualElements_150.png new file mode 100644 index 0000000..3235418 Binary files /dev/null and b/common/source_files/browser/branding/librewolf/VisualElements_150.png differ diff --git a/common/source_files/browser/branding/librewolf/VisualElements_70.png b/common/source_files/browser/branding/librewolf/VisualElements_70.png new file mode 100644 index 0000000..364e678 Binary files /dev/null and b/common/source_files/browser/branding/librewolf/VisualElements_70.png differ diff --git a/common/source_files/browser/branding/librewolf/background.png b/common/source_files/browser/branding/librewolf/background.png new file mode 100644 index 0000000..f46675d Binary files /dev/null and b/common/source_files/browser/branding/librewolf/background.png differ diff --git a/common/source_files/browser/branding/librewolf/bgstub.jpg b/common/source_files/browser/branding/librewolf/bgstub.jpg new file mode 100644 index 0000000..69cd6b8 Binary files /dev/null and b/common/source_files/browser/branding/librewolf/bgstub.jpg differ diff --git a/common/source_files/browser/branding/librewolf/bgstub_2x.jpg b/common/source_files/browser/branding/librewolf/bgstub_2x.jpg new file mode 100644 index 0000000..df23024 Binary files /dev/null and b/common/source_files/browser/branding/librewolf/bgstub_2x.jpg differ diff --git a/common/source_files/browser/branding/librewolf/branding.nsi b/common/source_files/browser/branding/librewolf/branding.nsi new file mode 100644 index 0000000..36cc1d4 --- /dev/null +++ b/common/source_files/browser/branding/librewolf/branding.nsi @@ -0,0 +1,50 @@ +# 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 +# file, You can obtain one at http://mozilla.org/MPL/2.0/. + +# NSIS branding defines for unofficial builds. +# The official release build branding.nsi is located in other-license/branding/firefox/ +# The nightly build branding.nsi is located in browser/installer/windows/nsis/ + +# BrandFullNameInternal is used for some registry and file system values +# instead of BrandFullName and typically should not be modified. +!define BrandFullNameInternal "LibreWolf" +!define BrandFullName "LibreWolf" +!define CompanyName "LibreWolf" +!define URLInfoAbout "https://www.libreWolf.gitlab.io" +!define HelpLink "https://github.com/LibreWolf-Browser" + +!define URLStubDownloadX86 "https://github.com/LibreWolf-Browser/LibreWolf/releases" +!define URLStubDownloadAMD64 "https://github.com/LibreWolf-Browser/LibreWolf/releases" +!define URLStubDownloadAArch64 "https://github.com/LibreWolf-Browser/LibreWolf/releases" +!define URLManualDownload "https://github.com/LibreWolf-Browser/LibreWolf/releases" +!define URLSystemRequirements "https://github.com/LibreWolf-Browser/LibreWolf" +!define Channel "unofficial" + +# The installer's certificate name and issuer expected by the stub installer +!define CertNameDownload "Mozilla Corporation" +!define CertIssuerDownload "DigiCert SHA2 Assured ID Code Signing CA" + +# Dialog units are used so the UI displays correctly with the system's DPI +# settings. +# The dialog units for the bitmap's dimensions should match exactly with the +# bitmap's width and height in pixels. +!define APPNAME_BMP_WIDTH_DU 159u +!define APPNAME_BMP_HEIGHT_DU 50u +!define INTRO_BLURB_WIDTH_DU "230u" +!define INTRO_BLURB_EDGE_DU "198u" +!define INTRO_BLURB_LTR_TOP_DU "16u" +!define INTRO_BLURB_RTL_TOP_DU "11u" +!define INSTALL_FOOTER_TOP_DU "-48u" + +# UI Colors that can be customized for each channel +!define FOOTER_CONTROL_TEXT_COLOR_NORMAL 0x000000 +!define FOOTER_CONTROL_TEXT_COLOR_FADED 0x999999 +!define FOOTER_BKGRD_COLOR 0xFFFFFF +!define INSTALL_FOOTER_TEXT_COLOR 0xFFFFFF +!define INTRO_BLURB_TEXT_COLOR 0xFFFFFF +!define INSTALL_BLURB_TEXT_COLOR 0xFFFFFF +!define INSTALL_PROGRESS_TEXT_COLOR_NORMAL 0xFFFFFF +!define COMMON_TEXT_COLOR_NORMAL 0xFFFFFF +!define COMMON_TEXT_COLOR_FADED 0xA1AAB3 +!define COMMON_BKGRD_COLOR 0x0F1B26 diff --git a/common/source_files/browser/branding/librewolf/configure.sh b/common/source_files/browser/branding/librewolf/configure.sh new file mode 100644 index 0000000..69a5b64 --- /dev/null +++ b/common/source_files/browser/branding/librewolf/configure.sh @@ -0,0 +1,9 @@ +# 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 +# file, You can obtain one at http://mozilla.org/MPL/2.0/. + +MOZ_APP_NAME=librewolf +MOZ_APP_BASENAME="LibreWolf" +MOZ_APP_PROFILE=librewolf +MOZ_APP_VENDOR=LibreWolf + diff --git a/common/source_files/browser/branding/librewolf/content/about-background.png b/common/source_files/browser/branding/librewolf/content/about-background.png new file mode 100644 index 0000000..9d2aa7d Binary files /dev/null and b/common/source_files/browser/branding/librewolf/content/about-background.png differ diff --git a/common/source_files/browser/branding/librewolf/content/about-logo.png b/common/source_files/browser/branding/librewolf/content/about-logo.png new file mode 100644 index 0000000..3da143e Binary files /dev/null and b/common/source_files/browser/branding/librewolf/content/about-logo.png differ diff --git a/common/source_files/browser/branding/librewolf/content/about-wordmark.svg b/common/source_files/browser/branding/librewolf/content/about-wordmark.svg new file mode 100644 index 0000000..60b278d --- /dev/null +++ b/common/source_files/browser/branding/librewolf/content/about-wordmark.svg @@ -0,0 +1,22 @@ + + + + + diff --git a/common/source_files/browser/branding/librewolf/content/about.png b/common/source_files/browser/branding/librewolf/content/about.png new file mode 100644 index 0000000..58f4928 Binary files /dev/null and b/common/source_files/browser/branding/librewolf/content/about.png differ diff --git a/common/source_files/browser/branding/librewolf/content/aboutDialog.css b/common/source_files/browser/branding/librewolf/content/aboutDialog.css new file mode 100644 index 0000000..e6a1d9e --- /dev/null +++ b/common/source_files/browser/branding/librewolf/content/aboutDialog.css @@ -0,0 +1,25 @@ +/* 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 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + +#aboutDialogContainer { + background-image: url("chrome://branding/content/about-background.png"); + background-repeat: no-repeat; + background-color: #00acff; + color: #fff; +} + +.text-link { + color: #fff !important; + text-decoration: underline; +} + +#rightBox { + /* this margin prevents text from overlapping the planet image */ + margin-left: 280px; + margin-right: 20px; +} + +#bottomBox { + background-color: rgba(0,0,0,.7); +} diff --git a/common/source_files/browser/branding/librewolf/content/horizontal-lockup.svg b/common/source_files/browser/branding/librewolf/content/horizontal-lockup.svg new file mode 100644 index 0000000..07dc4e0 --- /dev/null +++ b/common/source_files/browser/branding/librewolf/content/horizontal-lockup.svg @@ -0,0 +1,5 @@ + + + \ No newline at end of file diff --git a/common/source_files/browser/branding/librewolf/content/identity-icons-brand.svg b/common/source_files/browser/branding/librewolf/content/identity-icons-brand.svg new file mode 100644 index 0000000..6c33113 --- /dev/null +++ b/common/source_files/browser/branding/librewolf/content/identity-icons-brand.svg @@ -0,0 +1,7 @@ + + + + + diff --git a/common/source_files/browser/branding/librewolf/content/jar.mn b/common/source_files/browser/branding/librewolf/content/jar.mn new file mode 100644 index 0000000..acb0c10 --- /dev/null +++ b/common/source_files/browser/branding/librewolf/content/jar.mn @@ -0,0 +1,18 @@ +# 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 +# file, You can obtain one at http://mozilla.org/MPL/2.0/. + +browser.jar: +% content branding %content/branding/ contentaccessible=yes + content/branding/about.png + content/branding/about-background.png + content/branding/about-logo.png + content/branding/about-wordmark.svg + content/branding/icon16.png (../default16.png) + content/branding/icon32.png (../default32.png) + content/branding/icon48.png (../default48.png) + content/branding/icon64.png (../default64.png) + content/branding/icon128.png (../default128.png) + content/branding/identity-icons-brand.svg + content/branding/aboutDialog.css + content/branding/horizontal-lockup.svg diff --git a/common/source_files/browser/branding/librewolf/content/moz.build b/common/source_files/browser/branding/librewolf/content/moz.build new file mode 100644 index 0000000..eb4454d --- /dev/null +++ b/common/source_files/browser/branding/librewolf/content/moz.build @@ -0,0 +1,7 @@ +# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*- +# vim: set filetype=python: +# 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 +# file, You can obtain one at http://mozilla.org/MPL/2.0/. + +JAR_MANIFESTS += ['jar.mn'] \ No newline at end of file diff --git a/common/source_files/browser/branding/librewolf/default128.png b/common/source_files/browser/branding/librewolf/default128.png new file mode 100644 index 0000000..8531e51 Binary files /dev/null and b/common/source_files/browser/branding/librewolf/default128.png differ diff --git a/common/source_files/browser/branding/librewolf/default16.png b/common/source_files/browser/branding/librewolf/default16.png new file mode 100644 index 0000000..f9896db Binary files /dev/null and b/common/source_files/browser/branding/librewolf/default16.png differ diff --git a/common/source_files/browser/branding/librewolf/default32.png b/common/source_files/browser/branding/librewolf/default32.png new file mode 100644 index 0000000..7876d4b Binary files /dev/null and b/common/source_files/browser/branding/librewolf/default32.png differ diff --git a/common/source_files/browser/branding/librewolf/default48.png b/common/source_files/browser/branding/librewolf/default48.png new file mode 100644 index 0000000..00e6755 Binary files /dev/null and b/common/source_files/browser/branding/librewolf/default48.png differ diff --git a/common/source_files/browser/branding/librewolf/default64.png b/common/source_files/browser/branding/librewolf/default64.png new file mode 100644 index 0000000..f3a5079 Binary files /dev/null and b/common/source_files/browser/branding/librewolf/default64.png differ diff --git a/common/source_files/browser/branding/librewolf/disk.icns b/common/source_files/browser/branding/librewolf/disk.icns new file mode 100644 index 0000000..718f1a3 Binary files /dev/null and b/common/source_files/browser/branding/librewolf/disk.icns differ diff --git a/common/source_files/browser/branding/librewolf/document.icns b/common/source_files/browser/branding/librewolf/document.icns new file mode 100644 index 0000000..0e4bcb8 Binary files /dev/null and b/common/source_files/browser/branding/librewolf/document.icns differ diff --git a/common/source_files/browser/branding/librewolf/document.ico b/common/source_files/browser/branding/librewolf/document.ico new file mode 100644 index 0000000..584a0a1 Binary files /dev/null and b/common/source_files/browser/branding/librewolf/document.ico differ diff --git a/common/source_files/browser/branding/librewolf/dsstore b/common/source_files/browser/branding/librewolf/dsstore new file mode 100644 index 0000000..2d11482 Binary files /dev/null and b/common/source_files/browser/branding/librewolf/dsstore differ diff --git a/common/source_files/browser/branding/librewolf/firefox.VisualElementsManifest.xml b/common/source_files/browser/branding/librewolf/firefox.VisualElementsManifest.xml new file mode 100644 index 0000000..7654e0a --- /dev/null +++ b/common/source_files/browser/branding/librewolf/firefox.VisualElementsManifest.xml @@ -0,0 +1,8 @@ + + + diff --git a/common/source_files/browser/branding/librewolf/firefox.icns b/common/source_files/browser/branding/librewolf/firefox.icns new file mode 100644 index 0000000..de55816 Binary files /dev/null and b/common/source_files/browser/branding/librewolf/firefox.icns differ diff --git a/common/source_files/browser/branding/librewolf/firefox.ico b/common/source_files/browser/branding/librewolf/firefox.ico new file mode 100644 index 0000000..5217a6c Binary files /dev/null and b/common/source_files/browser/branding/librewolf/firefox.ico differ diff --git a/common/source_files/browser/branding/librewolf/firefox64.ico b/common/source_files/browser/branding/librewolf/firefox64.ico new file mode 100644 index 0000000..30a72f1 Binary files /dev/null and b/common/source_files/browser/branding/librewolf/firefox64.ico differ diff --git a/common/source_files/browser/branding/librewolf/locales/en-US/brand.dtd b/common/source_files/browser/branding/librewolf/locales/en-US/brand.dtd new file mode 100644 index 0000000..8375aaa --- /dev/null +++ b/common/source_files/browser/branding/librewolf/locales/en-US/brand.dtd @@ -0,0 +1,13 @@ + + + + + + + + + diff --git a/common/source_files/browser/branding/librewolf/locales/en-US/brand.ftl b/common/source_files/browser/branding/librewolf/locales/en-US/brand.ftl new file mode 100644 index 0000000..9627fd6 --- /dev/null +++ b/common/source_files/browser/branding/librewolf/locales/en-US/brand.ftl @@ -0,0 +1,22 @@ +# 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 +# file, You can obtain one at http://mozilla.org/MPL/2.0/. + +## Firefox Brand +## +## Firefox must be treated as a brand, and kept in English. +## It cannot be: +## - Declined to adapt to grammatical case. +## - Transliterated. +## - Translated. +## +## Reference: https://www.mozilla.org/styleguide/communications/translation/ + +-brand-shorter-name = LibreWolf +-brand-short-name = LibreWolf +-brand-full-name = LibreWolf +# This brand name can be used in messages where the product name needs to +# remain unchanged across different versions (Nightly, Beta, etc.). +-brand-product-name = LibreWolf +-vendor-short-name = LibreWolf +trademarkInfo = { " " } diff --git a/common/source_files/browser/branding/librewolf/locales/en-US/brand.properties b/common/source_files/browser/branding/librewolf/locales/en-US/brand.properties new file mode 100644 index 0000000..40c64c4 --- /dev/null +++ b/common/source_files/browser/branding/librewolf/locales/en-US/brand.properties @@ -0,0 +1,14 @@ +# 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 +# file, You can obtain one at http://mozilla.org/MPL/2.0/. + +brandShorterName=LibreWolf +brandShortName=LibreWolf +brandFullName=LibreWolf +# LOCALIZATION NOTE(brandProductName): +# This brand name can be used in messages where the product name needs to +# remain unchanged across different versions (Nightly, Beta, etc.). +brandProductName=LibreWolf +vendorShortName=LibreWolf + +syncBrandShortName=LibreWolf Sync diff --git a/common/source_files/browser/branding/librewolf/locales/jar.mn b/common/source_files/browser/branding/librewolf/locales/jar.mn new file mode 100644 index 0000000..d007b20 --- /dev/null +++ b/common/source_files/browser/branding/librewolf/locales/jar.mn @@ -0,0 +1,13 @@ +#filter substitution +# 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 +# file, You can obtain one at http://mozilla.org/MPL/2.0/. + +[localization] @AB_CD@.jar: + branding (en-US/**/*.ftl) + +@AB_CD@.jar: +% locale branding @AB_CD@ %locale/branding/ +# Unofficial branding only exists in en-US + locale/branding/brand.dtd (en-US/brand.dtd) + locale/branding/brand.properties (en-US/brand.properties) diff --git a/common/source_files/browser/branding/librewolf/locales/moz.build b/common/source_files/browser/branding/librewolf/locales/moz.build new file mode 100644 index 0000000..8bad131 --- /dev/null +++ b/common/source_files/browser/branding/librewolf/locales/moz.build @@ -0,0 +1,9 @@ +# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*- +# vim: set filetype=python: +# 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 +# file, You can obtain one at http://mozilla.org/MPL/2.0/. + +DEFINES['MOZ_DISTRIBUTION_ID_UNQUOTED'] = CONFIG['MOZ_DISTRIBUTION_ID'] + +JAR_MANIFESTS += ['jar.mn'] \ No newline at end of file diff --git a/common/source_files/browser/branding/librewolf/moz.build b/common/source_files/browser/branding/librewolf/moz.build new file mode 100644 index 0000000..9045cee --- /dev/null +++ b/common/source_files/browser/branding/librewolf/moz.build @@ -0,0 +1,13 @@ +# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*- +# vim: set filetype=python: +# 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 +# file, You can obtain one at http://mozilla.org/MPL/2.0/. + +DIRS += ['content', 'locales'] + +DIST_SUBDIR = 'browser' +export('DIST_SUBDIR') + +include('../branding-common.mozbuild') +FirefoxBranding() diff --git a/common/source_files/browser/branding/librewolf/newtab.ico b/common/source_files/browser/branding/librewolf/newtab.ico new file mode 100644 index 0000000..a9b37c0 Binary files /dev/null and b/common/source_files/browser/branding/librewolf/newtab.ico differ diff --git a/common/source_files/browser/branding/librewolf/newwindow.ico b/common/source_files/browser/branding/librewolf/newwindow.ico new file mode 100644 index 0000000..5537207 Binary files /dev/null and b/common/source_files/browser/branding/librewolf/newwindow.ico differ diff --git a/common/source_files/browser/branding/librewolf/pbmode.ico b/common/source_files/browser/branding/librewolf/pbmode.ico new file mode 100644 index 0000000..47677c1 Binary files /dev/null and b/common/source_files/browser/branding/librewolf/pbmode.ico differ diff --git a/common/source_files/browser/branding/librewolf/pref/firefox-branding.js b/common/source_files/browser/branding/librewolf/pref/firefox-branding.js new file mode 100644 index 0000000..056473d --- /dev/null +++ b/common/source_files/browser/branding/librewolf/pref/firefox-branding.js @@ -0,0 +1,6 @@ +/* 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 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + + + diff --git a/common/source_files/browser/branding/librewolf/wizHeader.bmp b/common/source_files/browser/branding/librewolf/wizHeader.bmp new file mode 100644 index 0000000..c818e1f Binary files /dev/null and b/common/source_files/browser/branding/librewolf/wizHeader.bmp differ diff --git a/common/source_files/browser/branding/librewolf/wizHeaderRTL.bmp b/common/source_files/browser/branding/librewolf/wizHeaderRTL.bmp new file mode 100644 index 0000000..2ac24b9 Binary files /dev/null and b/common/source_files/browser/branding/librewolf/wizHeaderRTL.bmp differ diff --git a/common/source_files/browser/branding/librewolf/wizWatermark.bmp b/common/source_files/browser/branding/librewolf/wizWatermark.bmp new file mode 100644 index 0000000..05f0e7f Binary files /dev/null and b/common/source_files/browser/branding/librewolf/wizWatermark.bmp differ diff --git a/common/source_files/mozconfig b/common/source_files/mozconfig new file mode 100644 index 0000000..4d5eb63 --- /dev/null +++ b/common/source_files/mozconfig @@ -0,0 +1,29 @@ +# COMPILE OPTIONS ####################################################################### +# This is for the desktop version of librewolf +ac_add_options --enable-application=browser + +# This supposedly speeds up compilation (We test through dogfooding anyway) +ac_add_options --disable-tests +ac_add_options --disable-debug + +# Folder to output the build files: +mk_add_options MOZ_OBJDIR=./obj_BUILD_OUTPUT + +# BRANDING OPTIONS ###################################################################### +# Setting the branding options +ac_add_options --with-branding=browser/branding/librewolf +ac_add_options --with-distribution-id=io.gitlab.librewolf + +# LIBREWOLF SPECIFIC OPTIONS ############################################################ +# enables ALSA +ac_add_options --enable-alsa + +# Disables crash reporting, telemetry and other data gathering tools +mk_add_options MOZ_CRASHREPORTER=0 +mk_add_options MOZ_DATA_REPORTING=0 +mk_add_options MOZ_SERVICES_HEALTHREPORT=0 +mk_add_options MOZ_TELEMETRY_REPORTING=0 + + + + diff --git a/linux/README.md b/linux/README.md new file mode 100644 index 0000000..f09f6af --- /dev/null +++ b/linux/README.md @@ -0,0 +1,14 @@ +This folder contains all the required material to build the browser on Linux platforms. + +### Requirements +* Ubuntu or Linux Mint (Bionic or later) + +### Notes +* As this script installs files during the build, it is recommended to run this script in a VM or installation dedicated to building. +* You will occassionally need to enter your sudo password. Running this script as root has not been tested +* This script has been tested with Linux Mint 19.1 +* The flatpak build is not ready yet. + +### Instructions +* Run build.sh inside this folder. +* Packages will be saved in the repository root folder. diff --git a/linux/appimage/build_appimage.sh b/linux/appimage/build_appimage.sh new file mode 100755 index 0000000..c3e53d0 --- /dev/null +++ b/linux/appimage/build_appimage.sh @@ -0,0 +1,44 @@ +#!/bin/sh +printf "\n\n------------------------------------ APPIMAGE BUILD -----------------------------------------\n"; + +# Aborts the script upon any faliure +set -e; + +# Sets up script variables +BINARY_TARBALL=$1 +APPIMAGE_FILE=$2 +_SCRIPT_FOLDER=$(realpath $(dirname $0)); +_BINARY_TARBALL_EXTRACTED_FOLDER=$_SCRIPT_FOLDER/librewolf; +_BUILD_APPIMAGE_FILE=$_SCRIPT_FOLDER/LibreWolf*.AppImage; +_APPIMAGETOOL_DOWNLOAD_URL=https://github.com/AppImage/AppImageKit/releases/latest/download/appimagetool-x86_64.AppImage; +_APPIMAGETOOL_EXTRACTED_FOLDER=$_SCRIPT_FOLDER/squashfs-root; +_APPIMAGETOOL_FILE=$_SCRIPT_FOLDER/appimagetool; +_APPIMAGE_CONTENT_FOLDER=$_SCRIPT_FOLDER/content + +# Extracts the binary tarball +printf "\nExtracting librewolf binary tarball\n"; +mkdir $_BINARY_TARBALL_EXTRACTED_FOLDER; +tar -xvf $BINARY_TARBALL -C $_BINARY_TARBALL_EXTRACTED_FOLDER; + +# Copy appimage resources to main tarball +printf "Copying AppImage resources to binary tarball folder\n"; +cp -vrT $_APPIMAGE_CONTENT_FOLDER $_BINARY_TARBALL_EXTRACTED_FOLDER; + +# Downloads appimage tool +printf "\nDownloading AppImage Tool\n"; +apt -qq update && apt -qqy install wget; +wget $_APPIMAGETOOL_DOWNLOAD_URL -O $_APPIMAGETOOL_FILE; +chmod +x $_APPIMAGETOOL_FILE; +$_APPIMAGETOOL_FILE --appimage-mount $_APPIMAGETOOL_EXTRACTED_FOLDER; +rm -f $_APPIMAGETOOL_FILE; + +# Generate AppImage +printf "\nGenerating AppImage\n"; +ARCH=x86_64 $_APPIMAGETOOL_EXTRACTED_FOLDER/AppRun $_BINARY_TARBALL_EXTRACTED_FOLDER; +rm -rf $_BINARY_TARBALL_EXTRACTED_FOLDER; +rm -rf $_APPIMAGETOOL_EXTRACTED_FOLDER; +chmod +x $_BUILD_APPIMAGE_FILE; + +# Move AppImage to specified location +printf "\nMoving AppImage to specified location\n"; +mv $_BUILD_APPIMAGE_FILE $APPIMAGE_FILE; diff --git a/linux/appimage/content/.DirIcon b/linux/appimage/content/.DirIcon new file mode 120000 index 0000000..2653ffb --- /dev/null +++ b/linux/appimage/content/.DirIcon @@ -0,0 +1 @@ +librewolf.svg \ No newline at end of file diff --git a/linux/appimage/content/AppRun b/linux/appimage/content/AppRun new file mode 100755 index 0000000..e347dcd --- /dev/null +++ b/linux/appimage/content/AppRun @@ -0,0 +1,12 @@ +#!/bin/sh +SELF=$(readlink -f "$0") +HERE=${SELF%/*} +export PATH="${HERE}:${HERE}/usr/bin/:${HERE}/usr/sbin/:${HERE}/usr/games/:${HERE}/bin/:${HERE}/sbin/${PATH:+:$PATH}" +export LD_LIBRARY_PATH="${HERE}/usr/lib/:${HERE}/usr/lib/i386-linux-gnu/:${HERE}/usr/lib/x86_64-linux-gnu/:${HERE}/usr/lib32/:${HERE}/usr/lib64/:${HERE}/lib/:${HERE}/lib/i386-linux-gnu/:${HERE}/lib/x86_64-linux-gnu/:${HERE}/lib32/:${HERE}/lib64/${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}" +export PYTHONPATH="${HERE}/usr/share/pyshared/${PYTHONPATH:+:$PYTHONPATH}" +export XDG_DATA_DIRS="${HERE}/usr/share/${XDG_DATA_DIRS:+:$XDG_DATA_DIRS}" +export PERLLIB="${HERE}/usr/share/perl5/:${HERE}/usr/lib/perl5/${PERLLIB:+:$PERLLIB}" +export GSETTINGS_SCHEMA_DIR="${HERE}/usr/share/glib-2.0/schemas/${GSETTINGS_SCHEMA_DIR:+:$GSETTINGS_SCHEMA_DIR}" +export QT_PLUGIN_PATH="${HERE}/usr/lib/qt4/plugins/:${HERE}/usr/lib/i386-linux-gnu/qt4/plugins/:${HERE}/usr/lib/x86_64-linux-gnu/qt4/plugins/:${HERE}/usr/lib32/qt4/plugins/:${HERE}/usr/lib64/qt4/plugins/:${HERE}/usr/lib/qt5/plugins/:${HERE}/usr/lib/i386-linux-gnu/qt5/plugins/:${HERE}/usr/lib/x86_64-linux-gnu/qt5/plugins/:${HERE}/usr/lib32/qt5/plugins/:${HERE}/usr/lib64/qt5/plugins/${QT_PLUGIN_PATH:+:$QT_PLUGIN_PATH}" +EXEC=$(grep -e '^Exec=.*' "${HERE}"/*.desktop | head -n 1 | cut -d "=" -f 2 | cut -d " " -f 1) +exec "${EXEC}" "$@" diff --git a/linux/appimage/content/librewolf.desktop b/linux/appimage/content/librewolf.desktop new file mode 100644 index 0000000..3e36765 --- /dev/null +++ b/linux/appimage/content/librewolf.desktop @@ -0,0 +1,6 @@ +[Desktop Entry] +Name=LibreWolf +Exec=librewolf +Icon=librewolf +Type=Application +Categories=Network; diff --git a/linux/appimage/content/librewolf.svg b/linux/appimage/content/librewolf.svg new file mode 100644 index 0000000..2c6262a --- /dev/null +++ b/linux/appimage/content/librewolf.svg @@ -0,0 +1,90 @@ + + + + + + + + + + image/svg+xml + + + + + + + + + + + diff --git a/linux/binary_tarball/build_tarball.sh b/linux/binary_tarball/build_tarball.sh new file mode 100755 index 0000000..83da436 --- /dev/null +++ b/linux/binary_tarball/build_tarball.sh @@ -0,0 +1,22 @@ +#!/bin/sh +printf "\n------------------------------------- BINARY TARBALL BUILD ------------------------------------------\n"; + +# Aborts the script upon any faliure +set -e; + +# Sets up script variables +BINARY_TARBALL=$1; +_SCRIPT_FOLDER=$(realpath $(dirname $0)); +_REPOSITORY_FOLDER=$(realpath $_SCRIPT_FOLDER/../../../); +_BINARY_TARBALL_SOURCE_FOLDER=$_SCRIPT_FOLDER/compile; +_BINARY_TARBALL_SOURCE_CONTENT_FOLDER=$_REPOSITORY_FOLDER/browser/common/source_files/; +_BINARY_TARBALL_SETTINGS_FOLDER=$_REPOSITORY_FOLDER/settings; +_BINARY_TARBALL_LAUNCH_SCRIPT=$_SCRIPT_FOLDER/binary_tarball/content/launch_librewolf.sh; + +# Executes the build +$_SCRIPT_FOLDER/scripts/1_Install_Dependencies.sh; +$_SCRIPT_FOLDER/scripts/2_Download_Source_Code.sh $_BINARY_TARBALL_SOURCE_FOLDER; +$_SCRIPT_FOLDER/scripts/3_Configure_Source_Code.sh $_BINARY_TARBALL_SOURCE_FOLDER $_BINARY_TARBALL_SOURCE_CONTENT_FOLDER; +$_SCRIPT_FOLDER/scripts/4_Build_Binary_Tarball.sh $_BINARY_TARBALL_SOURCE_FOLDER $BINARY_TARBALL; +$_SCRIPT_FOLDER/scripts/5_Configure_Binary_Tarball.sh $BINARY_TARBALL $_BINARY_TARBALL_SETTINGS_FOLDER $_BINARY_TARBALL_LAUNCH_SCRIPT; + diff --git a/linux/binary_tarball/content/launch_librewolf.sh b/linux/binary_tarball/content/launch_librewolf.sh new file mode 100755 index 0000000..26c1bd5 --- /dev/null +++ b/linux/binary_tarball/content/launch_librewolf.sh @@ -0,0 +1,32 @@ +#!/usr/bin/env bash + +INSTALL_FOLDER=$(realpath $(dirname $0)); +INSTALL_SETTINGS_FOLDER=$INSTALL_FOLDER/settings; +PROFILE_SETTINGS_FOLDER=$HOME/.librewolf/settings; + +# Adds option to install settings if argument is passed +if [ "$1" = "--install-settings" ]; then + mkdir -p $PROFILE_SETTINGS_FOLDER; + cp $INSTALL_SETTINGS_FOLDER/defaults/pref/local-settings.js $PROFILE_SETTINGS_FOLDER/local-settings.js; + cp $INSTALL_SETTINGS_FOLDER/distribution/policies.json $PROFILE_SETTINGS_FOLDER/policies.json; + cp $INSTALL_SETTINGS_FOLDER/librewolf.cfg $PROFILE_SETTINGS_FOLDER/librewolf.cfg; + cp $INSTALL_SETTINGS_FOLDER/toggle-settings.sh $PROFILE_SETTINGS_FOLDER/toggle-settings.sh; +fi + +# Sets up settings links +mkdir -p $INSTALL_FOLDER/defaults/pref/; +mkdir -p $INSTALL_FOLDER/distribution/; +ln -s $PROFILE_SETTINGS_FOLDER/local-settings.js $INSTALL_FOLDER/defaults/pref/local-settings.js; +ln -s $PROFILE_SETTINGS_FOLDER/policies.json $INSTALL_FOLDER/distribution/policies.json; +ln -s $PROFILE_SETTINGS_FOLDER/librewolf.cfg $INSTALL_FOLDER/librewolf.cfg; + +# Sets env variables to disable dedicated profiles (which breaks some packaging methods) +export MOZ_LEGACY_PROFILES=1; +export SNAP_NAME="firefox"; + +# Launches librewolf +chmod +x $INSTALL_FOLDER/librewolf; +$INSTALL_FOLDER/librewolf "$@"; + + + diff --git a/linux/binary_tarball/scripts/1_Install_Dependencies.sh b/linux/binary_tarball/scripts/1_Install_Dependencies.sh new file mode 100755 index 0000000..c241e6b --- /dev/null +++ b/linux/binary_tarball/scripts/1_Install_Dependencies.sh @@ -0,0 +1,10 @@ +#!/bin/sh +printf "\n\n-------------------------------------- DEPENDENCY INSTALLATION ---------------------------------------------\n"; + +# Setup Script Variables +_DEPENDENCIES="mercurial wget"; + +# Installs Dependencies +printf "\nInstalling dependencies\n"; +apt-get -qq update; +apt-get -qqy install $_DEPENDENCIES; diff --git a/linux/binary_tarball/scripts/2_Download_Source_Code.sh b/linux/binary_tarball/scripts/2_Download_Source_Code.sh new file mode 100755 index 0000000..ac022a1 --- /dev/null +++ b/linux/binary_tarball/scripts/2_Download_Source_Code.sh @@ -0,0 +1,11 @@ +#!/bin/sh +printf "\n\n--------------------------------- SOURCE CODE DOWNLOAD --------------------------------------\n"; + +# Setup Script Variables +SOURCE_FOLDER=$1; +_SOURCE_CODE_URL="https://hg.mozilla.org/releases/mozilla-release"; + +# Clone Firefox Source Code +printf "\nCloning Firefox Source Code\n"; +hg clone $_SOURCE_CODE_URL $SOURCE_FOLDER; + diff --git a/linux/binary_tarball/scripts/3_Configure_Source_Code.sh b/linux/binary_tarball/scripts/3_Configure_Source_Code.sh new file mode 100755 index 0000000..9adc430 --- /dev/null +++ b/linux/binary_tarball/scripts/3_Configure_Source_Code.sh @@ -0,0 +1,17 @@ +#!/bin/sh +printf "\n\n------------------------------ FINAL PREBUILD CONFIGURATION ---------------------------------\n"; + +# Setup Script Variables +SOURCE_CODE_FOLDER=$1; +SOURCE_CODE_CUSTOMIZATION_FOLDER=$2; +_POCKET_SED_STRING="s/'pocket'/#'pocket'/g"; +_POCKET_FILE=$SOURCE_CODE_FOLDER/browser/components/moz.build; + +# Copy Source Code Changes to Source Code +printf "\nCopying branding and source code changes to firefox source code\n"; +cp -r $SOURCE_CODE_CUSTOMIZATION_FOLDER/* $SOURCE_CODE_FOLDER/; + +# Disables Pocket +printf "\nDisabling Pocket\n"; +sed -i $_POCKET_SED_STRING $_POCKET_FILE; + diff --git a/linux/binary_tarball/scripts/4_Build_Binary_Tarball.sh b/linux/binary_tarball/scripts/4_Build_Binary_Tarball.sh new file mode 100755 index 0000000..5f3ebe5 --- /dev/null +++ b/linux/binary_tarball/scripts/4_Build_Binary_Tarball.sh @@ -0,0 +1,34 @@ +#!/bin/sh +printf "\n\n--------------------------------------- BUILD -----------------------------------------------\n"; + +# Setup Script Variables +SOURCE_FOLDER=$1; +OUTPUT_TARBALL=$2; +_SOURCE_CODE_BINARY_TARBALL_LOCATION="./obj*/dist/librewolf*.tar.bz2"; + +# Prevents build from breaking in CI/CD environments +export SHELL=/bin/bash; + +# Changes current folder to the source code folder +cd $SOURCE_FOLDER; + +# Runs bootstrapper to install dependencies +printf "\nRunning bootstrapper to install build dependencies (using ./mach script within source code)\n"; +./mach bootstrap --application-choice=browser --no-interactive; + +# Executes the actual build +printf "\nBuilding LibreWolf\n"; +./mach build; + +# Packages the build into a binary tarball +printf "\nPackaging LibreWolf\n"; +./mach package; + +# Moves the packaged tarball to the specified location +printf "\nMoving Binary Tarball to output location\n"; +mv $_SOURCE_CODE_BINARY_TARBALL_LOCATION $OUTPUT_TARBALL; + +# Deletes the source code +printf "\nDeleting source code\n"; +rm -rf $SOURCE_FOLDER; + diff --git a/linux/binary_tarball/scripts/5_Configure_Binary_Tarball.sh b/linux/binary_tarball/scripts/5_Configure_Binary_Tarball.sh new file mode 100755 index 0000000..293dc16 --- /dev/null +++ b/linux/binary_tarball/scripts/5_Configure_Binary_Tarball.sh @@ -0,0 +1,23 @@ +#!/bin/sh +printf "\n\n--------------------------------- SETTINGS INTEGRATION --------------------------------------\n"; + +# Setup Script Variables +BINARY_TARBALL=$1; +SETTINGS_FOLDER=$2; +LAUNCHER_SCRIPT=$3; +_EXTRACTED_TARBALL_FOLDER=./librewolf; + +# Extracts the binary tarball +printf "\nExtracting librewolf binary tarball\n"; +tar -xvf $BINARY_TARBALL; + +# Adds the librefox config files to the packaged tarball +printf "\nCopying librewolf settings to extracted binary tarball\n"; +cp -r $SETTINGS_FOLDER $_EXTRACTED_TARBALL_FOLDER/settings; +cp $LAUNCHER_SCRIPT $_EXTRACTED_TARBALL_FOLDER/launch_librewolf.sh; + +# Repacks the binary tarball +printf "\nRecompressing binary tarball\n"; +tar -jcvf $BINARY_TARBALL $_EXTRACTED_TARBALL_FOLDER; + + diff --git a/linux/binary_tarball/toggle-settings.sh b/linux/binary_tarball/toggle-settings.sh new file mode 100644 index 0000000..ff46bde --- /dev/null +++ b/linux/binary_tarball/toggle-settings.sh @@ -0,0 +1,21 @@ +#!/usr/bin/env bash + +# Exit script with a non-zero exit code if: +# - any command fails (-e | --errexit) +# - any variable is unset (-u | --nounset) +# - a part of a piped sequence fails (-o pipefail) +set -euo pipefail + +SCRIPT_FOLDER=$(realpath $(dirname $0)); + +# Enable settings ------------------------------------------------------------------------------------------ +if [[ "${1}" = "--enable" ]]; then + mv "${SCRIPT_FOLDER}/[DISABLED] local-settings.js" "${SCRIPT_FOLDER}/local-settings.js"; + mv "${SCRIPT_FOLDER}/[DISABLED] policies.json" "${SCRIPT_FOLDER}/policies.json"; + mv "${SCRIPT_FOLDER}/[DISABLED] librewolf.cfg" "${SCRIPT_FOLDER}/librewolf.cfg"; +# Disable settings ------------------------------------------------------------------------------------------ +elif [[ "${1}" = "--disable" ]]; then + mv "${SCRIPT_FOLDER}/local-settings.js" "${SCRIPT_FOLDER}/[DISABLED] local-settings.js"; + mv "${SCRIPT_FOLDER}/policies.json" "${SCRIPT_FOLDER}/[DISABLED] policies.json"; + mv "${SCRIPT_FOLDER}/librewolf.cfg" "${SCRIPT_FOLDER}/[DISABLED] librewolf.cfg"; +fi diff --git a/linux/build.sh b/linux/build.sh new file mode 100755 index 0000000..850e8ad --- /dev/null +++ b/linux/build.sh @@ -0,0 +1,20 @@ +#!/bin/sh +printf "\n------------------------------------- SCRIPT SETUP ------------------------------------------\n"; + +# Aborts the script upon any faliure +set -e; + +# Sets up script variables +SCRIPT_FOLDER=$(realpath $(dirname $0)); +REPOSITORY_FOLDER=$(realpath $SCRIPT_FOLDER/../../); +BINARY_TARBALL=$REPOSITORY_FOLDER/LibreWolf.tar.bz2; +APPIMAGE_FILE=$REPOSITORY_FOLDER/LibreWolf.AppImage; +FLATPAK_REPO=$REPOSITORY_FOLDER/librewolf-flatpak-repo; +FLATPAK_BUNDLE=$REPOSITORY_FOLDER/LibreWolf.flatpak; + +$SCRIPT_FOLDER/binary_tarball/build_tarball.sh $BINARY_TARBALL; +$SCRIPT_FOLDER/appimage/build_appimage.sh $BINARY_TARBALL $APPIMAGE_FILE; +$SCRIPT_FOLDER/flatpak/build_flatpak.sh $BINARY_TARBALL $FLATPAK_REPO $FLATPAK_BUNDLE; + + + diff --git a/linux/flatpak/build_flatpak.sh b/linux/flatpak/build_flatpak.sh new file mode 100755 index 0000000..bebf131 --- /dev/null +++ b/linux/flatpak/build_flatpak.sh @@ -0,0 +1,61 @@ +#!/bin/sh +printf "\n\n---------------------------------------- FLATPAK BUILD --------------------------------------------\n"; + +# Aborts the script upon any faliure +set -e; + +# Setup Script Variables +BINARY_TARBALL=$1; +FLATPAK_REPO=$2; +FLATPAK_BUNDLE=$3; +_SCRIPT_FOLDER=$(realpath $(dirname $0)); +_APT_SOURCE_LIST=/etc/apt/source.list; +_APT_REPO='deb http://ppa.launchpad.net/alexlarsson/flatpak/ubuntu bionic main' +_APT_REPO_KEY=FA577F07; +_APT_PACKAGES_TO_INSTALL="flatpak flatpak-builder"; +_FLATHUB_REPO="flathub https://flathub.org/repo/flathub.flatpakrepo"; +_FLATHUB_PACKAGES_TO_INSTALL="org.gnome.Platform/x86_64/3.32 org.gnome.Sdk/x86_64/3.32"; +_EXTRACTED_BINARY_TARBALL_FOLDER=./librewolf +_FLATPAK_JSON_FILE=$_SCRIPT_FOLDER/content/io.gitlab.LibreWolf.json; +_FLATPAK_BUILD_SOURCE_FOLDER=./source; +_FLATPAK_BUILD_FOLDER=build-dir; + + +# Install flatpak +printf "\nInstalling flatpak\n"; +echo $_APT_REPO >> $_APT_SOURCE_LIST; +apt-get -qq update && apt-get -qqy install gnupg2 && apt-key adv --keyserver keyserver.ubuntu.com --recv-keys $_APT_REPO_KEY; +apt-get -qq update; +apt-get -qqy install $_APT_PACKAGES_TO_INSTALL; + +# Install build dependencies +printf "\nInstalling flatpak build dependencies\n"; +flatpak remote-add --if-not-exists $_FLATHUB_REPO; +flatpak install -y flathub $_FLATHUB_PACKAGES_TO_INSTALL; + +# Extracts the binary tarball +printf "\nExtracting librewolf binary tarball\n"; +tar -xvf $BINARY_TARBALL; + +# Prepare for flatpak build +printf "\nPreparing files for flatpak build\n"; +mkdir $_FLATPAK_BUILD_SOURCE_FOLDER && mv $_EXTRACTED_BINARY_TARBALL_FOLDER $_FLATPAK_BUILD_SOURCE_FOLDER/librewolf; + +# Build Repo +printf "\nBuilding flatpak repository\n"; +cp "$_FLATPAK_JSON_FILE" ./; +flatpak-builder --repo="$FLATPAK_REPO" "$_FLATPAK_BUILD_FOLDER" io.gitlab.LibreWolf.json; + +# Build bundle +printf "\nBuilding flatpak bundle\n"; +flatpak build-bundle $FLATPAK_REPO $FLATPAK_BUNDLE io.gitlab.LibreWolf master; + +# Clean up flatpak files +printf "\nCleaning up flatpak related files\n"; +rm -rf $_FLATPAK_BUILD_FOLDER; +rm -rf $_FLATPAK_BUILD_SOURCE_FOLDER; +rm -rf ./.flatpak-builder; + +# Delete the extracted binary tarball folder +printf "\nDeleting extracted binary tarball folder\n"; +rm -rf $_EXTRACTED_BINARY_TARBALL_FOLDER; diff --git a/linux/flatpak/content/io.gitlab.LibreWolf.json b/linux/flatpak/content/io.gitlab.LibreWolf.json new file mode 100644 index 0000000..0e2b549 --- /dev/null +++ b/linux/flatpak/content/io.gitlab.LibreWolf.json @@ -0,0 +1,25 @@ +{ + "app-id": "io.gitlab.LibreWolf", + "runtime": "org.gnome.Platform", + "runtime-version": "3.32", + "sdk": "org.gnome.Sdk", + "command": "librewolf", + "modules": [{ + "name": "librewolf", + "buildsystem": "simple", + "build-commands": [ + "mkdir -p /app/share && mv librewolf -t /app/share", + "mkdir -p /app/bin && ln -s /app/share/librewolf/librewolf /app/bin/" + ], + "sources": [{ + "type": "dir", + "path": "source" + }] + }], + "finish-args": [ + "--share=ipc", "--socket=x11", /* X11 + XShm access */ + "--socket=wayland", /* Wayland access */ + "--filesystem=home:rw", /* We want full fs access so we can read the files */ + "--share=network" /* Needs to talk to the network: */ + ] +} diff --git a/mac/install_script.txt b/mac/install_script.txt new file mode 100644 index 0000000..d1f5970 --- /dev/null +++ b/mac/install_script.txt @@ -0,0 +1 @@ +Users//Library/Application Support/LibreWolf/Profiles/xxxxxxxx.default diff --git a/mac/package_macos.sh b/mac/package_macos.sh new file mode 100755 index 0000000..e4b2be9 --- /dev/null +++ b/mac/package_macos.sh @@ -0,0 +1,46 @@ +#!/bin/bash + +# Usage: ./package_macos.sh /path/to/Firefox.dmg [--install] +# If `--install` is passed, will copy Librefox.app into /Applications. +# Otherwise, Librefox.dmg will be created next to Firefox.dmg + +repo=$(git rev-parse --show-toplevel) + +vol=$(hdiutil attach "$1" -shadow | tail -n 1 | cut -f 3) +app="$(basename "$vol").app" + +cp "$repo/packaging/mac/background.png" "$vol/.background/" + +cd "$vol" +codesign --remove-signature "$app" + +cd "$app/Contents" +rm -rf _CodeSignature Library/LaunchServices/org.mozilla.updater + +cd MacOS +rm -rf plugin-container.app/Contents/_CodeSignature \ + crashreporter.app \ + updater.app + +cd ../Resources +rm -rf update-settings.ini updater.ini +cp -R "$repo/librefox/." . + +cd browser/features +rm -rf aushelper@mozilla.org.xpi \ + firefox@getpocket.com.xpi \ + onboarding@mozilla.org.xpi + +if [ "$2" == "--install" ]; then + cd "$vol" + cp -R "$app" /Applications/Librefox.app +fi + +cd "$repo" +hdiutil detach "$vol" + +if [ "$2" != "--install" ]; then + out_dir=$(dirname "$1") + rm -f "$out_dir/Librefox.dmg" + hdiutil convert -format UDZO -o "$out_dir/Librefox.dmg" "$1" -shadow +fi diff --git a/windows/install_script.txt b/windows/install_script.txt new file mode 100644 index 0000000..081cb68 --- /dev/null +++ b/windows/install_script.txt @@ -0,0 +1 @@ +#C:\Users\\AppData\Roaming\LibreWolf\Profiles\xxxxxxxx.default \ No newline at end of file -- cgit