commit d39cf0b653d6a7bf3b4a858d6f42e7c792713657 Author: Mauro Baladés Date: Thu Mar 28 08:35:23 2024 +0100 Simple firefox clone diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000..6639ea170 --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ + +.dotbuild/ +engine/ +firefox-*/ +node_modules/ diff --git a/.gluon/command b/.gluon/command new file mode 100644 index 000000000..8a58e1ae8 --- /dev/null +++ b/.gluon/command @@ -0,0 +1 @@ +download \ No newline at end of file diff --git a/configs/common/mozconfig b/configs/common/mozconfig new file mode 100644 index 000000000..41381d1a5 --- /dev/null +++ b/configs/common/mozconfig @@ -0,0 +1,24 @@ +# Browser branding +ac_add_options --enable-update-channel=release + +ac_add_options --with-branding=${brandingDir} +ac_add_options --with-app-name=${binName} +export MOZ_USER_DIR="${name}" +export MOZ_APP_VENDOR="${vendor}" +export MOZ_APP_BASENAME=Dot +export MOZ_APP_PROFILE=${binName} +export MOZ_APP_DISPLAYNAME="${name}" +export MOZ_BRANDING_DIRECTORY=${brandingDir} +export MOZ_OFFICIAL_BRANDING_DIRECTORY=${brandingDir} +export MOZ_MACBUNDLE_ID=${appId} +export MOZ_DISTRIBUTION_ID=${appId} + +# Uncomment if builds are too resource hungry +mk_add_options MOZ_MAKE_FLAGS="-j4" +ac_add_options --enable-linker=gold + +# Misc +export MOZ_STUB_INSTALLER=1 +export MOZ_INCLUDE_SOURCE_INFO=1 +export MOZ_SOURCE_REPO=https://github.com/zen-browser/core +export MOZ_SOURCE_CHANGESET=${changeset} diff --git a/configs/linux/mozconfig b/configs/linux/mozconfig new file mode 100644 index 000000000..2e4087543 --- /dev/null +++ b/configs/linux/mozconfig @@ -0,0 +1,13 @@ +# Optimise builds +ac_add_options --enable-application=browser +ac_add_options --enable-hardening +ac_add_options --enable-rust-simd +ac_add_options --enable-release +ac_add_options --enable-optimize +ac_add_options --with-ccache=sccache +ac_add_options --disable-debug +ac_add_options --enable-updater + +# Disable telemetry and tracking +mk_add_options MOZ_TELEMETRY_REPORTING= +mk_add_options MOZ_DATA_REPORTING= diff --git a/configs/macos/mozconfig b/configs/macos/mozconfig new file mode 100644 index 000000000..40f0fd338 --- /dev/null +++ b/configs/macos/mozconfig @@ -0,0 +1,14 @@ +# Optimise builds +ac_add_options --enable-application=browser +ac_add_options --enable-hardening +ac_add_options --enable-rust-simd +ac_add_options --enable-release +ac_add_options --enable-optimize +ac_add_options --with-ccache=sccache +ac_add_options --disable-debug +ac_add_options --enable-updater +mk_add_options MOZ_MAKE_FLAGS="-j4" + +# Disable telemetry and tracking +mk_add_options MOZ_TELEMETRY_REPORTING= +mk_add_options MOZ_DATA_REPORTING= diff --git a/configs/windows/mozconfig b/configs/windows/mozconfig new file mode 100644 index 000000000..2287c268b --- /dev/null +++ b/configs/windows/mozconfig @@ -0,0 +1,8 @@ +ac_add_options --target=x86_64-pc-mingw32 +ac_add_options --enable-js-shell +ac_add_options --enable-rust-simd +ac_add_options --enable-crashreporter + +# Disable telemetry and tracking +mk_add_options MOZ_TELEMETRY_REPORTING= +mk_add_options MOZ_DATA_REPORTING= \ No newline at end of file diff --git a/gluon.json b/gluon.json new file mode 100644 index 000000000..cc4dff8a3 --- /dev/null +++ b/gluon.json @@ -0,0 +1,14 @@ +{ + "name": "Zen Browser", + "vendor": "Zen HQ", + "appId": "com.zen.browser", + "version": { + "product": "firefox-esr-next", + "version": "124.0.1", + "displayVersion": "1.0.0" + }, + "buildOptions": { + "generateBranding": false, + "windowsUseSymbolicLinks": false + } +} \ No newline at end of file diff --git a/src/README.md b/src/README.md new file mode 100644 index 000000000..e69de29bb