Browse Source

A very pre-mature and drafty sketch at a possible osx build script

faxboss 7 years ago
parent
commit
c8df22ca11
  1. 11
      osx/README.md
  2. 6
      osx/build.sh
  3. BIN
      osx/i2pd_2.16.0_osx/i2pd
  4. BIN
      osx/i2pd_2.16.0_osx/libSystem.B.dylib
  5. BIN
      osx/i2pd_2.16.0_osx/libc++.1.dylib
  6. BIN
      osx/i2pd_2.16.0_osx/libz.1.dylib
  7. 2
      osx/run.sh
  8. 343
      osx/syspref.js

11
osx/README.md

@ -0,0 +1,11 @@ @@ -0,0 +1,11 @@
## How-to
NOTE: very very drafty script
run build.sh in one terminal
run ./i2pd_2.16.0_osx/i2pd in another terminal
Open FF-ESR without the use of run.sh, with ./FirefoxESR/Contents/MacOS/firefox --profilemanager
Create a new profile, save it in this ./osx dir and name the profile "i2pdbb". Quit it again.
Firefox ESR is now configured and i2pd is running. When you want to run FF-ESR now, execute it through the run.sh script.

6
osx/build.sh

@ -0,0 +1,6 @@ @@ -0,0 +1,6 @@
curl -O https://ftp.mozilla.org/pub/firefox/releases/52.5.0esr/mac/en-US/Firefox%2052.5.0esr.dmg
hdiutil attach Firefox%2052.5.0esr.dmg
cp -rf /Volumes/Firefox/Firefox.app ./FirefoxESR.app
cp ./syspref.js ./FirefoxESR.app/Contents/Resources/defaults/pref/
curl -O https://secure.informaction.com/download/releases/noscript-5.1.7.xpi
mv ./noscript-5.1.7.xpi ./FirefoxESR.app/Contents/Resources/browser/extensions/{73a6fe31-595d-460b-a920-fcc0f8843232}.xpi

BIN
osx/i2pd_2.16.0_osx/i2pd

Binary file not shown.

BIN
osx/i2pd_2.16.0_osx/libSystem.B.dylib

Binary file not shown.

BIN
osx/i2pd_2.16.0_osx/libc++.1.dylib

Binary file not shown.

BIN
osx/i2pd_2.16.0_osx/libz.1.dylib

Binary file not shown.

2
osx/run.sh

@ -0,0 +1,2 @@ @@ -0,0 +1,2 @@
cp ./syspref.js ./*.i2pdbb/prefs.js
./FirefoxESR.app/Contents/MacOS/firefox -profile ./*.i2pdbb

343
osx/syspref.js

@ -0,0 +1,343 @@ @@ -0,0 +1,343 @@
# Mozilla User preferences
/*
* Copyright (c) 2013-2017, The PurpleI2P Project
*
* This file is part of Purple i2pd project and licensed under BSD3
*
* See full license text in LICENSE file at top of project tree
*/
/* Do not edit this file.
*
* If you make changes to this file while the browser is running,
* the changes will be overwritten when the browser exits.
*
* To make a manual change to preferences, you can visit the URL about:config
* For more information, see http://www.mozilla.org/unix/customizing.html#prefs
*/
pref("app.update.auto", false);
pref("app.update.channel", "no");
pref("app.update.enabled", false);
pref("app.update.interval", 0);
pref("app.update.service.enabled", false);
pref("app.update.staging.enabled", false);
pref("app.update.timer", 0);
pref("beacon.enabled", false);
pref("breakpad.reportURL", "");
pref("browser.aboutHomeSnippets.updateUrl", "");
pref("browser.cache.disk.capacity", 131072);
pref("browser.casting.enabled", false);
pref("browser.crashReports.unsubmittedCheck.enabled", false);
// pref("browser.display.use_document_fonts", 0);
pref("browser.download.manager.retention", 0);
pref("browser.download.useDownloadDir", false);
pref("browser.feeds.showFirstRunUI", false);
pref("browser.fixup.alternate.enabled", false);
pref("browser.fixup.hide_user_pass", true);
pref("browser.formfill.enable", false);
// PREF: Delete Search and Form History
pref("browser.formfill.expire_days", 0);
// PREF: Delete temporary files on exit
pref("browser.helperApps.deleteTempFileOnExit", true);
pref("browser.newtabpage.enhanced", false);
pref("browser.newtabpage.introShown", true);
// PREF: Do not create screenshots of visited pages
pref("browser.pagethumbnails.capturing_disabled", true);
pref("browser.places.smartBookmarksVersion", -1);
pref("browser.pocket.enabled", false);
pref("browser.pocket.useLocaleList", false);
pref("browser.reader.detectedFirstArticle", false);
pref("browser.rights.3.shown", true);
pref("browser.safebrowsing.appRepURL", "");
pref("browser.safebrowsing.blockedURIs.enabled", false);
pref("browser.safebrowsing.downloads.enabled", false);
pref("browser.safebrowsing.downloads.remote.enabled", false);
pref("browser.safebrowsing.gethashURL", "");
pref("browser.safebrowsing.keyURL", "localhost");
pref("browser.safebrowsing.malware.enabled", false);
pref("browser.safebrowsing.malware.reportURL", "");
pref("browser.safebrowsing.phishing.enabled", false);
pref("browser.safebrowsing.provider.google.appRepURL", "");
pref("browser.safebrowsing.provider.google.gethashURL", "");
pref("browser.safebrowsing.provider.google.lists", "");
pref("browser.safebrowsing.provider.google.reportURL", "");
pref("browser.safebrowsing.provider.google.updateURL", "");
pref("browser.safebrowsing.provider.mozilla.gethashURL", "");
pref("browser.safebrowsing.provider.mozilla.lists", "");
pref("browser.safebrowsing.provider.mozilla.updateURL", "");
pref("browser.safebrowsing.reportErrorURL", "");
pref("browser.safebrowsing.reportGenericURL", "");
pref("browser.safebrowsing.reportMalwareErrorURL", "");
pref("browser.safebrowsing.reportMalwareURL", "");
pref("browser.safebrowsing.reportPhishURL", "");
pref("browser.safebrowsing.reportURL", "");
pref("browser.safebrowsing.updateURL", "");
pref("browser.safebrowsing.warning.infoURL", "");
pref("browser.search.countryCode", "US");
pref("browser.search.defaultenginename", "DuckDuckGo");
pref("browser.search.geoSpecificDefaults", false);
pref("browser.search.geoSpecificDefaults.url", "");
pref("browser.search.geoip.url", "");
pref("browser.search.order.1", "DuckDuckGo");
pref("browser.search.redirectWindowsSearch", false);
pref("browser.search.region", "US");
pref("browser.search.searchEnginesURL", "");
pref("browser.search.suggest.enabled", false);
pref("browser.search.update", false);
pref("browser.send_pings", false);
pref("browser.send_pings.require_same_host", true);
pref("browser.selfsupport.url", "");
pref("browser.shell.checkDefaultBrowser", false);
user_pref("browser.startup.homepage", "http://i2pd.i2p/");
pref("browser.tabs.closeWindowWithLastTab", false);
pref("browser.tabs.crashReporting.sendReport", false);
pref("browser.tabs.loadInBackground", true);
pref("browser.uitour.enabled", false);
pref("browser.urlbar.filter.javascript", true);
pref("browser.urlbar.formatting.enabled", false);
pref("browser.urlbar.maxRichResults", 12);
// pref("browser.urlbar.suggest.history", false);
pref("browser.urlbar.suggest.searches", false);
pref("browser.urlbar.trimURLs", false);
pref("browser.usedOnWindows10", false);
pref("browser.usedOnWindows10.introURL", "");
pref("camera.control.face_detection.enabled", false);
pref("canvas.capturestream.enabled", false);
pref("clipboard.autocopy", false);
pref("datareporting.healthreport.about.reportUrl", "");
pref("datareporting.healthreport.about.reportUrlUnified", "");
pref("datareporting.healthreport.documentServerURI", "");
pref("datareporting.healthreport.pendingDeleteRemoteData", true);
pref("datareporting.healthreport.service.enabled", false);
pref("datareporting.healthreport.service.firstRun", false);
pref("datareporting.healthreport.uploadEnabled", false);
pref("datareporting.policy.dataSubmissionEnabled", false);
pref("datareporting.policy.dataSubmissionEnabled.v2", false);
pref("datareporting.policy.dataSubmissionPolicyAccepted", false);
pref("datareporting.policy.dataSubmissionPolicyBypassAcceptance", false);
pref("datareporting.policy.dataSubmissionPolicyNotifiedTime", "0");
pref("datareporting.policy.dataSubmissionPolicyResponseType", "accepted-info-bar-dismissed");
pref("datareporting.policy.dataSubmissionPolicyResponseTime", "0");
pref("datareporting.policy.firstRunTime", "0");
pref("datareporting.sessions.current.clean", true);
pref("device.sensors.enabled", false);
pref("devtools.chrome.enabled", false);
pref("devtools.debugger.remote-enabled", false);
pref("devtools.debugger.force-local", true);
pref("devtools.webide.enabled", false);
pref("devtools.webide.autoinstallADBHelper", false);
pref("devtools.webide.autoinstallFxdtAdapters", false);
pref("dom.allow_cut_copy", false);
pref("dom.archivereader.enabled", false);
pref("dom.battery.enabled", false);
pref("dom.disable_open_during_load", true);
pref("dom.enable_performance", false);
pref("dom.enable_user_timing", false);
pref("dom.event.clipboardevents.enabled", false);
pref("dom.flyweb.enabled", false);
pref("dom.gamepad.enabled", false);
pref("dom.ipc.plugins.flash.subprocess.crashreporter.enabled", false);
pref("dom.ipc.plugins.reportCrashURL", false);
//pref("dom.indexedDB.enabled", false);
pref("dom.mozTCPSocket.enabled", false);
pref("dom.netinfo.enabled", false);
pref("dom.network.enabled", false);
pref("dom.serviceWorkers.enabled", false);
pref("dom.telephony.enabled", false);
pref("dom.vibrator.enabled", false);
pref("dom.vr.enabled", false);
pref("dom.webaudio.enabled", false);
pref("dom.webnotifications.enabled", false);
pref("dom.workers.enabled", false);
pref("experiments.supported", false);
pref("experiments.enabled", false);
pref("experiments.manifest.uri", "");
pref("extensions.autoDisableScopes", 0);
pref("extensions.blocklist.enabled", false);
pref("extensions.blocklist.url", "");
pref("extensions.getAddons.cache.enabled", false);
pref("extensions.getAddons.showPane", false);
pref("extensions.lazarus.showDonateNotification", false);
pref("extensions.pocket.enabled", false);
pref("extensions.shownSelectionUI", true);
pref("extensions.ui.lastCategory", "addons://list/extension");
pref("extensions.update.autoUpdateDefault", false);
pref("extensions.update.enabled", false);
pref("full-screen-api.approval-required", false);
pref("full-screen-api.warning.timeout", 0);
pref("general.buildID.override", "19700101");
pref("general.warnOnAboutConfig", false);
pref("geo.enabled", false);
pref("geo.wifi.uri", "");
pref("geo.wifi.logging.enabled", false);
// pref("gfx.font_rendering.opentype_svg.enabled", false);
pref("intl.locale.matchOS", true);
// pref("javascript.options.asmjs", false);
pref("javascript.use_us_english_locale", true);
pref("keyword.enabled", false);
pref("lightweightThemes.update.enabled", false);
pref("media.eme.enabled", false);
pref("media.getusermedia.screensharing.enabled", false);
pref("media.getusermedia.audiocapture.enabled", false);
pref("media.gmp-eme-adobe.enabled", false);
pref("media.gmp-gmpopenh264.enabled", false);
pref("media.gmp-gmpopenh264.provider.enabled", false);
pref("media.gmp-manager.url", "");
// pref("media.gmp-provider.enabled", false);
pref("media.navigator.enabled", false);
pref("media.navigator.video.enabled", false);
pref("media.peerconnection.enabled", false);
pref("media.peerconnection.ice.no_host", true);
pref("media.video_stats.enabled", false);
pref("media.webspeech.recognition.enable", false);
pref("media.webspeech.synth.enabled", false);
pref("network.allow-experiments", false);
// pref("network.cookie.cookieBehavior", 1);
// PREF: Cookies expires at the end of the session (when the browser closes)
// pref("network.cookie.lifetimePolicy", 2);
pref("network.cookie.prefsMigrated", true);
// pref("network.cookie.thirdparty.sessionOnly", true);
// pref("network.dns.blockDotOnion", true);
pref("network.dns.disableIPv6", true);
pref("network.dns.disableprefetch", true);
pref("network.dns.disableprefetchFromHTTPS", true);
pref("network.dns.disablePrefetch", true);
pref("network.dns.disablePrefetchFromHTTPS", true);
// pref("network.http.referer.spoofSource", true);
// pref("network.http.referer.XOriginPolicy", 2);
pref("network.http.speculative-parallel-limit", 0);
pref("network.IDN_show_punycode", true);
pref("network.jar.open-unsafe-types", false);
pref("network.manage-offline-status", false);
pref("network.negotiate-auth.allow-insecure-ntlm-v1", false);
pref("network.predictor.enabled", false);
pref("network.prefetch-next", false);
pref("network.protocol-handler.warn-external-default", true);
pref("network.protocol-handler.external.http", false);
pref("network.protocol-handler.external.https", false);
pref("network.protocol-handler.external.javascript", false);
pref("network.protocol-handler.external.moz-extension", false);
pref("network.protocol-handler.external.ftp", false);
pref("network.protocol-handler.external.file", false);
pref("network.protocol-handler.external.about", false);
pref("network.protocol-handler.expose-all", false);
pref("network.protocol-handler.expose.http", true);
pref("network.protocol-handler.expose.https", true);
pref("network.protocol-handler.expose.javascript", true);
pref("network.protocol-handler.expose.moz-extension", true);
pref("network.protocol-handler.expose.ftp", true);
pref("network.protocol-handler.expose.file", true);
pref("network.protocol-handler.expose.about", true);
pref("network.proxy.backup.ftp", "127.0.0.1");
pref("network.proxy.backup.ftp_port", 4444);
pref("network.proxy.backup.socks", "127.0.0.1");
pref("network.proxy.backup.socks_port", 4444);
pref("network.proxy.backup.ssl", "127.0.0.1");
pref("network.proxy.backup.ssl_port", 4444);
pref("network.proxy.ftp", "127.0.0.1");
pref("network.proxy.ftp_port", 4444);
pref("network.proxy.http", "127.0.0.1");
pref("network.proxy.http_port", 4444);
pref("network.proxy.share_proxy_settings", true);
pref("network.proxy.socks", "127.0.0.1");
pref("network.proxy.socks_port", 4444);
pref("network.proxy.socks_remote_dns", true);
pref("network.proxy.ssl", "127.0.0.1");
pref("network.proxy.ssl_port", 4444);
pref("network.proxy.type", 1);
pref("network.cookie.prefsMigrated", true);
pref("noscript.ABE.enabled", false);
pref("noscript.ABE.wanIpAsLocal", false);
pref("pdfjs.disabled", true);
pref("pdfjs.enableWebGL", false);
pref("plugin.default_plugin_disabled", true);
// pref("plugin.state.flash", 0);
pref("plugin.state.java", 0);
pref("plugin.state.libgnome-shell-browser-plugin", 0);
pref("plugins.click_to_play", true);
pref("plugins.load_appdir_plugins", false);
pref("plugins.update.notifyUser", false);
pref("plugins.update.url", "");
// PREF: Clear history when Firefox closes
// pref("privacy.sanitize.sanitizeOnShutdown", true);
// pref("privacy.clearOnShutdown.cache", true);
// pref("privacy.clearOnShutdown.cookies", true);
// pref("privacy.clearOnShutdown.downloads", true);
// pref("privacy.clearOnShutdown.formdata", true);
// pref("privacy.clearOnShutdown.history", true);
// pref("privacy.clearOnShutdown.offlineApps", true);
// pref("privacy.clearOnShutdown.sessions", true);
// pref("privacy.clearOnShutdown.openWindows", true);
pref("privacy.cpd.offlineApps", true);
pref("privacy.cpd.cache", true);
pref("privacy.cpd.cookies", true);
pref("privacy.cpd.downloads", true);
pref("privacy.cpd.formdata", true);
pref("privacy.cpd.history", true);
pref("privacy.cpd.sessions", true);
pref("privacy.donottrackheader.enabled", true);
pref("privacy.resistFingerprinting", true);
pref("privacy.sanitize.timeSpan", 0);
pref("privacy.trackingprotection.enabled", true);
pref("privacy.trackingprotection.pbmode.enabled", true);
pref("privacy.userContext.enabled", true);
pref("reader.parse-on-load.enabled", false);
pref("reader.parse-on-load.force-enabled", false);
pref("security.csp.enable", true);
pref("security.csp.experimentalEnabled", true);
pref("security.dialog_enable_delay", 1000);
pref("security.fileuri.strict_origin_policy", true);
pref("security.insecure_field_warning.contextual.enabled", false);
// PREF: Enable insecure password warnings (login forms in non-HTTPS pages)
pref("security.insecure_password.ui.enabled", false);
pref("security.mixed_content.block_active_content", true);
pref("security.mixed_content.block_display_content", true);
pref("services.blocklist.update_enabled", false);
pref("security.sri.enable", true);
pref("security.ssl.errorReporting.automatic", false);
pref("security.ssl.errorReporting.enabled", false);
pref("services.sync.enabled", false);
pref("services.sync.prefs.sync.browser.download.manager.scanWhenDone", false);
pref("services.sync.prefs.sync.browser.safebrowsing.enabled", false);
pref("services.sync.prefs.sync.browser.search.update", false);
pref("services.sync.prefs.sync.extensions.update.enabled", false);
// pref("shumway.disabled", true);
pref("signon.autofillForms", false);
// PREF: Disable password manager
pref("signon.rememberSignons", false);
pref("startup.homepage_welcome_url", "about:blank");
pref("startup.homepage_welcome_url.additional", "about:blank");
pref("toolkit.telemetry.archive.enabled", false);
pref("toolkit.telemetry.enabled", false);
pref("toolkit.telemetry.optoutSample", false);
pref("toolkit.telemetry.reportingpolicy.firstRun", false);
pref("toolkit.telemetry.server", "");
pref("toolkit.telemetry.unified", false);
pref("toolkit.telemetry.unifiedIsOptIn", true);
pref("webgl.disabled", true);
pref("webgl.disable-extensions", true);
pref("webgl.disable-fail-if-major-performance-caveat", true);
pref("webgl.enable-debug-renderer-info", false);
pref("webgl.min_capability_mode", true);
// Ensure domain logging is disabled
pref("loop.logDomains", false);
// Spoof to dual-core cpu
pref("dom.maxHardwareConcurrency", 2);
// Disable offline cache
pref("browser.cache.offline.enable", false);
// Prevent tracking over multiple domains
pref("privacy.firstparty.isolate", true);
pref("network.proxy.no_proxies_on", "localhost, 127.0.0.1");
// In relation to webrtc
pref("media.peerconnection.turn.disable", true);
pref("media.peerconnection.use_document_iceservers", false);
pref("media.peerconnection.identity.timeout", 1);
pref("media.peerconnection.ice.default_address_only", true);
// Disable url prefetch
pref("browser.urlbar.speculativeConnect.enabled", false);
// Set platform, user-agent and locale to same values as Tor Browser 7.0.10
pref("general.useragent.override", "Mozilla/5.0 (Windows NT 6.1; rv:52.0) Gecko/20100101 Firefox/52.0");
pref("general.useragent.locale", "en-US");
pref("general.platform.override", "Win32");
Loading…
Cancel
Save