52.6.0ESR, update windows script, exclude prebuilt from repo

Former-commit-id: df74dba977d54ec5a2cdf1d1c15a1fa79a62b0fb
This commit is contained in:
R4SAS 2018-01-23 09:17:02 +03:00
parent d3ce560bbd
commit 300c71bef7
17 changed files with 279 additions and 459 deletions

View file

@ -7,25 +7,25 @@ REM See full license text in LICENSE file at top of project tree
setlocal enableextensions
set CURL=%~dp0curl.exe
set FFversion=52.5.2
set FFversion=52.6.0
set I2Pdversion=2.17.0
call :GET_LOCALE
call :GET_PROXY
call :GET_ARCH
if "%locale%"=="Russian" (
if "%locale%"=="ru" (
echo ‘¡®àª  I2Pd Browser Portable
echo ‘¨á⥬­ ï «®ª «ì: %locale%,  àå¨â¥ªâãà : %xOS%
echo Ÿ§ëª ¡à ã§¥à : %locale%,  àå¨â¥ªâãà : %xOS%
echo.
echo ‡ £à㧪  ãáâ ­®¢é¨ª  Firefox Portable ESR
) else (
echo Building I2Pd Browser Portable
echo System locale: %locale%, architecture: %xOS%
echo Browser locale: %locale%, architecture: %xOS%
echo.
echo Downloading Firefox Portable ESR installer
)
"%CURL%" -L -f -# -O https://downloads.sourceforge.net/project/portableapps/Mozilla%%20Firefox%%2C%%20Portable%%20Ed./Mozilla%%20Firefox%%20ESR%%2C%%20Portable%%20Edition%%20%FFversion%/FirefoxPortableESR_%FFversion%_%locale%.paf.exe %$X%
"%CURL%" -L -f -# -o firefox.exe https://ftp.mozilla.org/pub/firefox/releases/%FFversion%esr/%xOS%/%locale%/Firefox%%20Setup%%20%FFversion%esr.exe %$X%
if errorlevel 1 (
echo ERROR:%ErrorLevel%
pause
@ -33,55 +33,33 @@ if errorlevel 1 (
) else (echo OK!)
echo.
if "%locale%"=="Russian" (
if "%locale%"=="ru" (
echo <20> á¯ ª®¢ª  ãáâ ­®¢é¨ª  ¨ 㤠«¥­¨¥ ­¥ ­ã¦­ëå ä ©«®¢
) else (
echo Unpacking the installer and deleting unnecessary files
)
7z x -y -o..\Firefox FirefoxPortableESR_%FFversion%_%locale%.paf.exe > nul
del /Q FirefoxPortableESR_%FFversion%_%locale%.paf.exe
rmdir /S /Q ..\Firefox\$PLUGINSDIR
rmdir /S /Q ..\Firefox\App\AppInfo
rmdir /S /Q ..\Firefox\App\Bin
rmdir /S /Q ..\Firefox\App\DefaultData\plugins
rmdir /S /Q ..\Firefox\App\DefaultData\settings
rmdir /S /Q ..\Firefox\Other
del /Q ..\Firefix\App\DefaultData\profile\*
del /Q ..\Firefox\App\readme.txt
del /Q ..\Firefox\help.html
rem if "xOS"=="x86" (
rem rmdir /S /Q ..\Firefox\App\Firefox64
rmdir /S /Q ..\Firefox\App\Firefox\dictionaries
rmdir /S /Q ..\Firefox\App\Firefox\uninstall
del /Q ..\Firefox\App\Firefox\browser\blocklist.xml
del /Q ..\Firefox\App\Firefox\crashreporter.*
del /Q ..\Firefox\App\Firefox\maintenanceservice*.*
del /Q ..\Firefox\App\Firefox\update*.*
rem ) else (
rem rmdir /S /Q ..\Firefox\App\Firefox
rmdir /S /Q ..\Firefox\App\Firefox64\dictionaries
rmdir /S /Q ..\Firefox\App\Firefox64\uninstall
del /Q ..\Firefox\App\Firefox64\browser\blocklist.xml
del /Q ..\Firefox\App\Firefox64\crashreporter.*
del /Q ..\Firefox\App\Firefox64\maintenanceservice*.*
del /Q ..\Firefox\App\Firefox64\update*.*
rem )
7z x -y -o..\Firefox\App firefox.exe > nul
del /Q firefox.exe
ren ..\Firefox\App\core Firefox
del /Q ..\Firefox\App\setup.exe
rmdir /S /Q ..\Firefox\App\Firefox\dictionaries
rmdir /S /Q ..\Firefox\App\Firefox\uninstall
del /Q ..\Firefox\App\Firefox\browser\blocklist.xml
del /Q ..\Firefox\App\Firefox\browser\crashreporter-override.ini
del /Q ..\Firefox\App\Firefox\crashreporter.*
del /Q ..\Firefox\App\Firefox\maintenanceservice*.*
del /Q ..\Firefox\App\Firefox\update*.*
if "%locale%"=="Russian" (
if "%locale%"=="ru" (
echo Žâª«î祭¨¥ ®âç¥â®¢ ® ¯ ¤¥­¨¨
) else (
echo Disabling crash reports
)
rem if "xOS"=="x86" (
sed -i "s/Enabled=1/Enabled=0/g" ..\Firefox\App\Firefox\application.ini
sed -i "s/ServerURL=.*/ServerURL=-/" ..\Firefox\App\Firefox\application.ini
rem ) else (
sed -i "s/Enabled=1/Enabled=0/g" ..\Firefox\App\Firefox64\application.ini
sed -i "s/ServerURL=.*/ServerURL=-/" ..\Firefox\App\Firefox64\application.ini
rem )
sed -i "s/Enabled=1/Enabled=0/g" ..\Firefox\App\Firefox\application.ini
sed -i "s/ServerURL=.*/ServerURL=-/" ..\Firefox\App\Firefox\application.ini
if "%locale%"=="Russian" (
if "%locale%"=="ru" (
echo ‡ £à㧪  ¤®¯®«­¥­¨ï NoScript
) else (
echo Downloading NoScript extension
@ -90,24 +68,21 @@ if "%locale%"=="Russian" (
"%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!)
copy /Y noscript-5.1.8.2.xpi ..\Firefox\App\Firefox\browser\extensions\{73a6fe31-595d-460b-a920-fcc0f8843232}.xpi > nul
copy /Y noscript-5.1.8.2.xpi ..\Firefox\App\Firefox64\browser\extensions\{73a6fe31-595d-460b-a920-fcc0f8843232}.xpi > nul
del /Q noscript-5.1.8.2.xpi
echo.
if "%locale%"=="Russian" (
if "%locale%"=="ru" (
echo Š®¯¨à®¢ ­¨¥ ä ©«®¢ ­ áâ஥ª ¢ ¯ ¯ªã Firefox
) else (
echo Copying Firefox settings
echo Copying Firefox launcher and settings
)
copy /Y profile\* ..\Firefox\App\DefaultData\profile\ > nul
copy /Y settings\FirefoxPortable.ini ..\Firefox\ > nul
mkdir ..\Firefox\App\DefaultData\profile\ > nul
mkdir ..\Firefox\App\Firefox\browser\defaults\preferences\ > nul
mkdir ..\Firefox\App\Firefox64\browser\defaults\preferences\ > nul
copy /Y profile\* ..\Firefox\App\DefaultData\profile\ > nul
copy /Y firefox-portable\* ..\Firefox\ > nul
copy /Y preferences\* ..\Firefox\App\Firefox\browser\defaults\preferences\ > nul
copy /Y preferences\* ..\Firefox\App\Firefox64\browser\defaults\preferences\ > nul
if "%locale%"=="Russian" (
if "%locale%"=="ru" (
echo ‡ £à㧪  I2Pd
) else (
echo Downloading I2Pd
@ -126,7 +101,7 @@ if "xOS"=="x86" (
xcopy /E /I /Y i2pd ..\i2pd > nul
echo.
if "%locale%"=="Russian" (
if "%locale%"=="ru" (
echo I2Pd Browser Portable £®â®¢ ª § ¯ãáªã!
) else (
echo I2Pd Browser Portable is ready to start!
@ -136,7 +111,7 @@ exit
:GET_LOCALE
for /f "tokens=3" %%a in ('reg query "HKEY_USERS\.DEFAULT\Keyboard Layout\Preload"^|find "REG_SZ"') do (
if %%a==00000419 (set locale=Russian) else (set locale=Russian)
if %%a==00000419 (set locale=ru) else (set locale=en-US)
goto :eof
)
goto :eof
@ -148,8 +123,8 @@ if %ProxyEnable%==0x1 set $X=-x %ProxyServer%
goto :eof
:GET_ARCH
set xOS=x86
if defined PROCESSOR_ARCHITEW6432 (set xOS=x64) else if "%PROCESSOR_ARCHITECTURE%"=="AMD64" set xOS=x64
set xOS=win32
if defined PROCESSOR_ARCHITEW6432 (set xOS=x64) else if "%PROCESSOR_ARCHITECTURE%"=="AMD64" set xOS=win64
goto :eof
:eof