rendered paste bodyIndex: install.xml
===================================================================
--- install.xml (révision 18454)
+++ install.xml (copie de travail)
@@ -147,6 +147,7 @@
<executable targetfile="$INSTALL_PATH\bin\remove_service.bat" keep="true" stage="uninstall"/>
<parsable targetfile="$INSTALL_PATH\bin\cleanup.cmd"/>
+ <parsable targetfile="$INSTALL_PATH\bin\install_ff_profile.cmd"/>
<parsable targetfile="$INSTALL_PATH\bin\install_freenet-ext.cmd"/>
<parsable targetfile="$INSTALL_PATH\bin\install_freenet-stable-latest.cmd"/>
<parsable targetfile="$INSTALL_PATH\bin\install_frost.cmd"/>
@@ -240,6 +241,11 @@
<description>Create uninstallation hooks in the registry</description>
<parsable targetfile="$INSTALL_PATH\Uninstaller\uninstall.cmd"/>
</pack>
+
+ <pack name="FirefoxProfile" id="firefox-profile" required="no">
+ <description>Configure a new profile in Mozilla Firefox with performance tweaks for freenet.</description>
+ <singlefile src="res/license/LICENSE.Freenet" target="$INSTALL_PATH/ff.install"/>
+ </pack>
<pack name="AutoUpdater" id="autoupdater" required="no">
<description>Allow the node to auto-update over freenet securely. It's advised that you enable it to keep your node up-
Index: ProcessPanel.Spec.xml
===================================================================
--- ProcessPanel.Spec.xml (révision 18452)
+++ ProcessPanel.Spec.xml (copie de travail)
@@ -13,6 +13,11 @@
<executefile name="$INSTALL_PATH\bin\setup.cmd"/>
</job>
+ <job name="Setting up the Firefox Profile">
+ <os family="windows"/>
+ <executefile name="$INSTALL_PATH\bin\install_ff_profile.cmd"/>
+ </job>
+
<job name="Setting the Updater up">
<os family="unix"/>
<executefile name="$INSTALL_PATH/bin/install_updater.sh"/>
Index: res/windows/bin/install_ff_profile.cmd
===================================================================
--- res/windows/bin/install_ff_profile.cmd (révision 0)
+++ res/windows/bin/install_ff_profile.cmd (révision 0)
@@ -0,0 +1,20 @@
+@set PATH=%SYSTEMROOT%\System32\;%PATH%
+@set INSTALL_PATH=$INSTALL_PATH
+@set JAVA_HOME=$JAVA_HOME
+@cd /D %INSTALL_PATH%
+
+
+@if not exist ff.install goto noff
+@del /F ff.install > NUL
+@echo Creating a Firefox profile for freenet
+regedit /E firefox.reg "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\App Paths\firefox.exe"
+:: No I didn't find any better regexp I could do whitout cote-escaping.
+bin\cat.exe firefox.reg | find "@=" | bin\sed.exe "s/""/|/g" | bin\sed.exe "s/.*|\(.*\)|/\1/" | bin\sed.exe "s/\\\\/\\/g" > firefox.location
+set /P FIREFOX=<firefox.location
+mkdir firefox_profile
+"%FIREFOX%" -no-remote -CreateProfile "freenet firefox_profile"
+echo user_pref("network.http.max-connections"", 200);> firefox_profile\user.js
+echo user_pref("network.http.max-connections-per-server", 200);> firefox_profile\user.js
+echo user_pref("network.http.max-persistent-connections-per-server", 100);> firefox_profile\user.js
+echo user_pref("network.http.max-persistent-connections-per-proxy", 100);> firefox_profile\user.js
+:noff