Browse Source

update noscript, fix build scripts

Former-commit-id: bf078e96a8
pull/43/head
R4SAS 7 years ago
parent
commit
22e7f39ef9
  1. 7
      linux/build/build.sh
  2. 4
      linux/build/preferences/syspref.js
  3. 7
      osx/build/build.sh
  4. 4
      osx/build/preferences/syspref.js
  5. 1
      windows/README.md
  6. 18
      windows/build/build.cmd
  7. 4
      windows/build/preferences/syspref.js
  8. 2
      windows_prebuilt/build/build_7z.bat
  9. 2
      windows_prebuilt/build/build_exe.bat

7
linux/build/build.sh

@ -81,9 +81,12 @@ sed -i 's/ServerURL=.*/ServerURL=-/' ../app/application.ini
# sed -i 's/ServerURL=.*/ServerURL=-/' ../app/webapprt/webapprt.ini # sed -i 's/ServerURL=.*/ServerURL=-/' ../app/webapprt/webapprt.ini
# Done! # Done!
echo "Downloading language packs..."
curl -L -f -# -o ../app/browser/extensions/langpack-ru@firefox.mozilla.org.xpi https://addons.mozilla.org/firefox/downloads/file/605634/russian_ru_language_pack-52.0-fx.xpi?src=version-history
curl -L -f -# -o ../app/browser/extensions/langpack-en-US@firefox.mozilla.org.xpi https://addons.mozilla.org/firefox/downloads/file/605596/english_us_language_pack-52.0-fx.xpi?src=version-history
echo "Downloading NoScript extension..." echo "Downloading NoScript extension..."
curl -L -f -# -O https://secure.informaction.com/download/releases/noscript-5.1.8.2.xpi curl -L -f -# -o ../app/browser/extensions/{73a6fe31-595d-460b-a920-fcc0f8843232}.xpi https://addons.mozilla.org/firefox/downloads/file/806790/noscript_security_suite-5.1.8.3-fx+sm.xpi
mv noscript-5.1.8.2.xpi ../app/browser/extensions/{73a6fe31-595d-460b-a920-fcc0f8843232}.xpi
echo "Adding standard configs..." echo "Adding standard configs..."
cp profile/* ../data/ cp profile/* ../data/

4
linux/build/preferences/syspref.js

@ -250,8 +250,8 @@ pref("network.proxy.type", 1);
pref("network.cookie.prefsMigrated", true); pref("network.cookie.prefsMigrated", true);
pref("noscript.ABE.enabled", false); pref("noscript.ABE.enabled", false);
pref("noscript.ABE.wanIpAsLocal", false); pref("noscript.ABE.wanIpAsLocal", false);
pref("noscript.firstRunRedirection.pending", "5.1.8.2"); pref("noscript.firstRunRedirection.pending", "5.1.8.3");
pref("noscript.version", "5.1.8.2"); pref("noscript.version", "5.1.8.3");
pref("noscript.visibleUIChecked", true); pref("noscript.visibleUIChecked", true);
pref("pdfjs.disabled", true); pref("pdfjs.disabled", true);
pref("pdfjs.enableWebGL", false); pref("pdfjs.enableWebGL", false);

7
osx/build/build.sh

@ -84,9 +84,12 @@ rm $file
# sed -i 's/ServerURL=.*/ServerURL=-/' ../app/webapprt/webapprt.ini # sed -i 's/ServerURL=.*/ServerURL=-/' ../app/webapprt/webapprt.ini
# Done! # Done!
echo "Downloading language packs..."
curl -L -f -# -o ../FirefoxESR.app/Contents/Resources/browser/extensions/langpack-ru@firefox.mozilla.org.xpi https://addons.mozilla.org/firefox/downloads/file/605634/russian_ru_language_pack-52.0-fx.xpi?src=version-history
curl -L -f -# -o ../FirefoxESR.app/Contents/Resources/browser/extensions/langpack-en-US@firefox.mozilla.org.xpi https://addons.mozilla.org/firefox/downloads/file/605596/english_us_language_pack-52.0-fx.xpi?src=version-history
echo "Downloading NoScript extension..." echo "Downloading NoScript extension..."
curl -L -f -# -O https://secure.informaction.com/download/releases/noscript-5.1.8.2.xpi curl -L -f -# -o ../FirefoxESR.app/Contents/Resources/browser/extensions/{73a6fe31-595d-460b-a920-fcc0f8843232}.xpi https://addons.mozilla.org/firefox/downloads/file/806790/noscript_security_suite-5.1.8.3-fx+sm.xpi
mv noscript-5.1.8.2.xpi ../FirefoxESR.app/Contents/Resources/browser/extensions/{73a6fe31-595d-460b-a920-fcc0f8843232}.xpi
echo "Adding standard configs..." echo "Adding standard configs..."
cp profile/* ../data/ cp profile/* ../data/

4
osx/build/preferences/syspref.js

@ -250,8 +250,8 @@ pref("network.proxy.type", 1);
pref("network.cookie.prefsMigrated", true); pref("network.cookie.prefsMigrated", true);
pref("noscript.ABE.enabled", false); pref("noscript.ABE.enabled", false);
pref("noscript.ABE.wanIpAsLocal", false); pref("noscript.ABE.wanIpAsLocal", false);
pref("noscript.firstRunRedirection.pending", "5.1.8.2"); pref("noscript.firstRunRedirection.pending", "5.1.8.3");
pref("noscript.version", "5.1.8.2"); pref("noscript.version", "5.1.8.3");
pref("noscript.visibleUIChecked", true); pref("noscript.visibleUIChecked", true);
pref("pdfjs.disabled", true); pref("pdfjs.disabled", true);
pref("pdfjs.enableWebGL", false); pref("pdfjs.enableWebGL", false);

1
windows/README.md

@ -13,5 +13,6 @@ Links to software used for building i2pdbrowser
* Curl: https://winampplugins.co.uk/curl/ * Curl: https://winampplugins.co.uk/curl/
* CA Root Certificates: https://raw.githubusercontent.com/bagder/ca-bundle/master/ca-bundle.crt * CA Root Certificates: https://raw.githubusercontent.com/bagder/ca-bundle/master/ca-bundle.crt
* sed: http://unxutils.sourceforge.net/ * sed: http://unxutils.sourceforge.net/
* Firefox Portable launcher: https://portableapps.com/apps/internet/firefox-portable-esr
SHA512SUMS created with `find * -type f -print0 | xargs -0 -i sha512sum {}` command SHA512SUMS created with `find * -type f -print0 | xargs -0 -i sha512sum {}` command

18
windows/build/build.cmd

@ -59,16 +59,24 @@ if "%locale%"=="ru" (
sed -i "s/Enabled=1/Enabled=0/g" ..\Firefox\App\Firefox\application.ini sed -i "s/Enabled=1/Enabled=0/g" ..\Firefox\App\Firefox\application.ini
sed -i "s/ServerURL=.*/ServerURL=-/" ..\Firefox\App\Firefox\application.ini sed -i "s/ServerURL=.*/ServerURL=-/" ..\Firefox\App\Firefox\application.ini
if "%locale%"=="ru" (
echo £à㧪  ï§ëª®¢ëå ¯ ª¥â®¢
) else (
echo Downloading language packs
)
"%CURL%" -L -f -# -o ..\Firefox\App\Firefox\browser\extensions\langpack-ru@firefox.mozilla.org.xpi https://addons.mozilla.org/firefox/downloads/file/605634/russian_ru_language_pack-52.0-fx.xpi?src=version-history
if errorlevel 1 ( echo ERROR:%ErrorLevel% && pause && exit ) else (echo OK!)
"%CURL%" -L -f -# -o ..\Firefox\App\Firefox\browser\extensions\langpack-en-US@firefox.mozilla.org.xpi https://addons.mozilla.org/firefox/downloads/file/605596/english_us_language_pack-52.0-fx.xpi?src=version-history
if errorlevel 1 ( echo ERROR:%ErrorLevel% && pause && exit ) else (echo OK!)
echo.
if "%locale%"=="ru" ( if "%locale%"=="ru" (
echo <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> NoScript echo <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> NoScript
) else ( ) else (
echo Downloading NoScript extension echo Downloading NoScript extension
) )
"%CURL%" -L -f -# -o ..\Firefox\App\Firefox\browser\extensions\{73a6fe31-595d-460b-a920-fcc0f8843232}.xpi https://addons.mozilla.org/firefox/downloads/file/806790/noscript_security_suite-5.1.8.3-fx+sm.xpi
"%CURL%" -L -f -# -O https://secure.informaction.com/download/releases/noscript-5.1.8.2.xpi
if errorlevel 1 ( echo ERROR:%ErrorLevel% && pause && exit ) else (echo OK!) if errorlevel 1 ( echo ERROR:%ErrorLevel% && pause && exit ) else (echo OK!)
copy /Y noscript-5.1.8.2.xpi ..\Firefox\App\Firefox\browser\extensions\{73a6fe31-595d-460b-a920-fcc0f8843232}.xpi > nul
del /Q noscript-5.1.8.2.xpi
echo. echo.
if "%locale%"=="ru" ( if "%locale%"=="ru" (
@ -124,7 +132,7 @@ goto :eof
:GET_ARCH :GET_ARCH
set xOS=win32 set xOS=win32
if defined PROCESSOR_ARCHITEW6432 (set xOS=x64) else if "%PROCESSOR_ARCHITECTURE%"=="AMD64" set xOS=win64 REM if defined PROCESSOR_ARCHITEW6432 (set xOS=x64) else if "%PROCESSOR_ARCHITECTURE%"=="AMD64" set xOS=win64
goto :eof goto :eof
:eof :eof

4
windows/build/preferences/syspref.js

@ -250,8 +250,8 @@ pref("network.proxy.type", 1);
pref("network.cookie.prefsMigrated", true); pref("network.cookie.prefsMigrated", true);
pref("noscript.ABE.enabled", false); pref("noscript.ABE.enabled", false);
pref("noscript.ABE.wanIpAsLocal", false); pref("noscript.ABE.wanIpAsLocal", false);
pref("noscript.firstRunRedirection.pending", "5.1.8.2"); pref("noscript.firstRunRedirection.pending", "5.1.8.3");
pref("noscript.version", "5.1.8.2"); pref("noscript.version", "5.1.8.3");
pref("noscript.visibleUIChecked", true); pref("noscript.visibleUIChecked", true);
pref("pdfjs.disabled", true); pref("pdfjs.disabled", true);
pref("pdfjs.enableWebGL", false); pref("pdfjs.enableWebGL", false);

2
windows_prebuilt/build/build_7z.bat

@ -6,7 +6,7 @@ REM See full license text in LICENSE file at top of project tree
echo ‘®§¤ ¥¬ 7z  à娢 á ­ ¡®à®¬... echo ‘®§¤ ¥¬ 7z  à娢 á ­ ¡®à®¬...
REM <EFBFBD>  ¢ë室¥ ¯®«ãç ¥¬ 7z  à娢, ¢ ª®â®à®¬ ¡ã¤ãâ «¥¦ âì ¯ ¯ª¨ Firefox, I2Pd ¨ StartI2PdBrowser.bat ¨§ ¯ ¯ª¨ src ã஢­¥¬ ¢ëè¥. REM <EFBFBD>  ¢ë室¥ ¯®«ãç ¥¬ 7z  à娢, ¢ ª®â®à®¬ ¡ã¤ãâ «¥¦ âì ¯ ¯ª¨ Firefox, I2Pd ¨ StartI2PdBrowser.bat ¨§ ¯ ¯ª¨ src ã஢­¥¬ ¢ëè¥.
7z a -t7z -m0=lzma2 -mx=9 -aoa -mfb=273 -md=512m -ms=on I2PdBrowserPortable_1.2.6.7z ..\..\windows\Firefox ..\..\I2Pd ..\src\StartI2PdBrowser.bat 7z a -t7z -m0=lzma2 -mx=9 -aoa -mfb=273 -md=512m -ms=on I2PdBrowserPortable_1.2.6.7z ..\..\windows\Firefox ..\..\windows\i2pd ..\src\StartI2PdBrowser.bat
echo ƒ®â®¢®! echo ƒ®â®¢®!
pause pause

2
windows_prebuilt/build/build_exe.bat

@ -6,7 +6,7 @@ REM See full license text in LICENSE file at top of project tree
echo ‘®§₪ ¥¬ 7z  או¨¢ ב ­ ¡®א®¬... echo ‘®§₪ ¥¬ 7z  או¨¢ ב ­ ¡®א®¬...
REM <EFBFBD>  ¢כו®₪¥ ¯®«דח ¥¬ 7z  או¨¢, ¢ ×®ג®א®¬ ¡ד₪דג «¥¦ גל ¯ ¯×¨ Firefox, I2Pd, src ¨ ה ©« StartI2PdBrowser.exe דא®¢­¥¬ ¢כט¥. REM <EFBFBD>  ¢כו®₪¥ ¯®«דח ¥¬ 7z  או¨¢, ¢ ×®ג®א®¬ ¡ד₪דג «¥¦ גל ¯ ¯×¨ Firefox, I2Pd, src ¨ ה ©« StartI2PdBrowser.exe דא®¢­¥¬ ¢כט¥.
7z a -t7z -m0=lzma2 -mx=9 -aoa -mfb=273 -md=512m -ms=on I2PdBrowserPortable.7z ..\..\Firefox ..\..\I2Pd ..\src ..\StartI2PdBrowser.exe 7z a -t7z -m0=lzma2 -mx=9 -aoa -mfb=273 -md=512m -ms=on I2PdBrowserPortable.7z ..\..\windows\Firefox ..\..\windows\i2pd ..\src ..\StartI2PdBrowser.exe
echo ‘®§₪ ¥¬ 7z SFX - ב ¬®א ב¯ ×®¢כ¢ מי¨©בן  או¨¢... echo ‘®§₪ ¥¬ 7z SFX - ב ¬®א ב¯ ×®¢כ¢ מי¨©בן  או¨¢...
REM <EFBFBD>  ¢כו®₪¥ ¯®«דח ¥¬ ב ¬®א ב¯ ×®¢כ¢ מי¨©בן  או¨¢,  או¨¢ ¯®ב«¥ םג®£® ד₪ «ן¥¬. REM <EFBFBD>  ¢כו®₪¥ ¯®«דח ¥¬ ב ¬®א ב¯ ×®¢כ¢ מי¨©בן  או¨¢,  או¨¢ ¯®ב«¥ םג®£® ד₪ «ן¥¬.

Loading…
Cancel
Save