diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4b38609 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/mozilla-unified diff --git a/assets/mozconfig b/assets/mozconfig new file mode 100644 index 0000000..ffe572b --- /dev/null +++ b/assets/mozconfig @@ -0,0 +1,20 @@ +#ac_add_options --allow-addon-sideload +#ac_add_options --disable-crashreporter +#ac_add_options --disable-debug +#ac_add_options --disable-default-browser-agent +#ac_add_options --disable-tests +#ac_add_options --disable-updater +#ac_add_options --enable-hardening +#ac_add_options --enable-optimize +#ac_add_options --enable-release +#ac_add_options --enable-rust-simd + +#ac_add_options --with-app-name=snowleopard +#ac_add_options --with-unsigned-addon-scopes=app,system + +#export MOZ_REQUIRE_SIGNING= + +#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/bootstrap.sh b/bootstrap.sh new file mode 100755 index 0000000..12df6a3 --- /dev/null +++ b/bootstrap.sh @@ -0,0 +1,5 @@ +#!/bin/bash +set -e + +curl https://hg.mozilla.org/mozilla-central/raw-file/default/python/mozboot/bin/bootstrap.py -O +python3 bootstrap.py --vcs=git --no-interactive diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..dbd2298 --- /dev/null +++ b/build.sh @@ -0,0 +1,16 @@ +#!/bin/bash +set -e + +# Clean repo +cd ./mozilla-unified +git reset --hard +git clean -fd + +# Prepare assets +cp ../assets/mozconfig mozconfig + +# Prepare patches +git apply ../patches/*.patch + +# Build the thing +./mach build diff --git a/patches/0001-branding.patch b/patches/0001-branding.patch new file mode 100644 index 0000000..de7b12f --- /dev/null +++ b/patches/0001-branding.patch @@ -0,0 +1,43 @@ +diff --git a/browser/branding/unofficial/configure.sh b/browser/branding/unofficial/configure.sh +index edd3bd3e86e50..a919513ddae3a 100644 +--- a/browser/branding/unofficial/configure.sh ++++ b/browser/branding/unofficial/configure.sh +@@ -2,4 +2,4 @@ + # 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_DISPLAYNAME=Nightly ++MOZ_APP_DISPLAYNAME=Snowleopard +diff --git a/browser/branding/unofficial/locales/en-US/brand.ftl b/browser/branding/unofficial/locales/en-US/brand.ftl +index 5eaea9a7c4e87..917ac943756d6 100644 +--- a/browser/branding/unofficial/locales/en-US/brand.ftl ++++ b/browser/branding/unofficial/locales/en-US/brand.ftl +@@ -16,10 +16,10 @@ + ## For further details, consult: + ## https://mozilla-l10n.github.io/styleguides/mozilla_general/#brands-copyright-and-trademark + +--brand-shorter-name = Nightly +--brand-short-name = Nightly +--brand-shortcut-name = Nightly +--brand-full-name = Nightly ++-brand-shorter-name = Snowleopard ++-brand-short-name = Snowleopard ++-brand-shortcut-name = Snowleopard ++-brand-full-name = Snowleopard + # 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 = Firefox +diff --git a/browser/branding/unofficial/locales/en-US/brand.properties b/browser/branding/unofficial/locales/en-US/brand.properties +index 346c3bdb509bf..e1429d9d33549 100644 +--- a/browser/branding/unofficial/locales/en-US/brand.properties ++++ b/browser/branding/unofficial/locales/en-US/brand.properties +@@ -2,6 +2,6 @@ + # 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=Nightly +-brandShortName=Nightly +-brandFullName=Nightly ++brandShorterName=Snowleopard ++brandShortName=Snowleopard ++brandFullName=Snowleopard diff --git a/start.sh b/start.sh new file mode 100755 index 0000000..41890be --- /dev/null +++ b/start.sh @@ -0,0 +1,5 @@ +#!/bin/bash +set -e + +cd ./mozilla-unified +./mach run