Browse Source

move versions to variables. update FF to 52.2.1esr

Former-commit-id: 71fab4086b
pull/43/head
R4SAS 8 years ago
parent
commit
13ce7627fb
  1. 2
      linux/build/build.sh
  2. 20
      windows/build/build.cmd

2
linux/build/build.sh

@ -8,7 +8,7 @@
arch=$(uname -m) arch=$(uname -m)
language=$(echo $LANG | cut -c-5 | sed s/_/-/g) language=$(echo $LANG | cut -c-5 | sed s/_/-/g)
version="52.1.2esr" version="52.2.1esr"
application="firefox" application="firefox"
ftpmirror="https://ftp.mozilla.org/pub/$application/releases/$version" ftpmirror="https://ftp.mozilla.org/pub/$application/releases/$version"

20
windows/build/build.cmd

@ -7,6 +7,8 @@ REM See full license text in LICENSE file at top of project tree
setlocal enableextensions setlocal enableextensions
set CURL=%~dp0curl.exe set CURL=%~dp0curl.exe
set FFversion=52.2.1
set I2Pdversion=2.14.0
call :GET_LOCALE call :GET_LOCALE
call :GET_PROXY call :GET_PROXY
call :GET_ARCH call :GET_ARCH
@ -23,7 +25,7 @@ if "%locale%"=="Russian" (
echo Downloading Firefox Portable ESR installer 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%%2052.1.2/FirefoxPortableESR_52.1.2_%locale%.paf.exe %$X% "%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%
if errorlevel 1 ( if errorlevel 1 (
echo ERROR:%ErrorLevel% echo ERROR:%ErrorLevel%
pause pause
@ -37,8 +39,8 @@ if "%locale%"=="Russian" (
echo Unpacking the installer and delete unnecessary files echo Unpacking the installer and delete unnecessary files
) )
7z x -y -o..\Firefox FirefoxPortableESR_52.1.2_%locale%.paf.exe > nul 7z x -y -o..\Firefox FirefoxPortableESR_%FFversion%_%locale%.paf.exe > nul
del /Q FirefoxPortableESR_52.1.2_%locale%.paf.exe del /Q FirefoxPortableESR_%FFversion%_%locale%.paf.exe
rmdir /S /Q ..\Firefox\$PLUGINSDIR rmdir /S /Q ..\Firefox\$PLUGINSDIR
rmdir /S /Q ..\Firefox\App\AppInfo rmdir /S /Q ..\Firefox\App\AppInfo
rmdir /S /Q ..\Firefox\App\Bin rmdir /S /Q ..\Firefox\App\Bin
@ -111,15 +113,15 @@ if "%locale%"=="Russian" (
echo Downloading I2Pd echo Downloading I2Pd
) )
if "xOS"=="x86" ( if "xOS"=="x86" (
"%CURL%" -L -f -# -O https://github.com/PurpleI2P/i2pd/releases/download/2.14.0/i2pd_2.14.0_win32_mingw.zip "%CURL%" -L -f -# -O https://github.com/PurpleI2P/i2pd/releases/download/%I2Pdversion%/i2pd_%I2Pdversion%_win32_mingw.zip
if errorlevel 1 ( echo ERROR:%ErrorLevel% && pause && exit ) else (echo OK!) if errorlevel 1 ( echo ERROR:%ErrorLevel% && pause && exit ) else (echo OK!)
7z x -y -o..\i2pd i2pd_2.14.0_win32_mingw.zip > nul 7z x -y -o..\i2pd i2pd_%I2Pdversion%_win32_mingw.zip i2pd.exe > nul
del /Q i2pd_2.14.0_win32_mingw.zip del /Q i2pd_%I2Pdversion%_win32_mingw.zip
) else ( ) else (
"%CURL%" -L -f -# -O https://github.com/PurpleI2P/i2pd/releases/download/2.14.0/i2pd_2.14.0_win64_mingw.zip "%CURL%" -L -f -# -O https://github.com/PurpleI2P/i2pd/releases/download/%I2Pdversion%/i2pd_%I2Pdversion%_win64_mingw.zip
if errorlevel 1 ( echo ERROR:%ErrorLevel% && pause && exit ) else (echo OK!) if errorlevel 1 ( echo ERROR:%ErrorLevel% && pause && exit ) else (echo OK!)
7z x -y -o..\i2pd i2pd_2.14.0_win64_mingw.zip > nul 7z x -y -o..\i2pd i2pd_%I2Pdversion%_win64_mingw.zip i2pd.exe > nul
del /Q i2pd_2.14.0_win64_mingw.zip del /Q i2pd_%I2Pdversion%_win64_mingw.zip
) )
xcopy /E /I /Y i2pd ..\i2pd > nul xcopy /E /I /Y i2pd ..\i2pd > nul

Loading…
Cancel
Save