Former-commit-id: 47b5394e91a9517af223d81c9a522b5d5121349b
This commit is contained in:
R4SAS 2017-03-14 15:03:30 +03:00
parent 72a5f3da0e
commit f3c8f91d20
10 changed files with 28 additions and 25 deletions

View File

@ -8,12 +8,12 @@
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="45.7.0esr" version="45.8.0esr"
application="firefox" application="firefox"
curlfind=$(which curl) curlfind=$(which curl)
if [ -z $curlfind ]; then if [ -z $curlfind ]; then
echo "Can't find cURL installed. That script needs it!"; echo "Can't find 'cURL' installed. That script needs it!";
exit 1; exit 1;
fi fi
@ -32,11 +32,11 @@ if [ $? -ne 0 ]; then # Not found error, trying to cut language variable
curl -L -f -# -O $url curl -L -f -# -O $url
fi fi
if [ $? -ne 0 ]; then # Not found error, trying to download english version if [ $? -ne 0 ]; then # Not found error, trying to download english version
echo "[TRY 3] I'll try download Firefox with English language code"; echo "[TRY 3] I'll try download Firefox with English language code";
language="en_US" language="en_US"
# re-create variable with cutted lang # re-create lang variable
url="https://ftp.mozilla.org/pub/$application/releases/$version/linux-$arch/$language/$file" url="https://ftp.mozilla.org/pub/$application/releases/$version/linux-$arch/$language/$file"
curl -L -f -# -O $url curl -L -f -# -O $url
fi fi
if [ ! -f $file ]; then if [ ! -f $file ]; then
echo "[Error] Can't find downloaded file. Check your internet connectivity." echo "[Error] Can't find downloaded file. Check your internet connectivity."

View File

@ -10,8 +10,8 @@ arch=$(uname -m)
screenfind=$(which screen) screenfind=$(which screen)
if [ -z $curlfind ]; then if [ -z $curlfind ]; then
echo "Can't find 'screen' installed. That script needs it!"; echo "Can't find 'screen' installed. That script needs it!";
exit 1; exit 1;
fi fi
if [ $arch == "x86_64" ] if [ $arch == "x86_64" ]
@ -19,5 +19,3 @@ if [ $arch == "x86_64" ]
else else
screen -Adm -S i2pd ./i2pd-i386 --datadir=. screen -Adm -S i2pd ./i2pd-i386 --datadir=.
fi fi

View File

@ -9,11 +9,11 @@ REM BFCPEEMBEDDELETE=1
REM BFCPEADMINEXE=0 REM BFCPEADMINEXE=0
REM BFCPEINVISEXE=0 REM BFCPEINVISEXE=0
REM BFCPEVERINCLUDE=1 REM BFCPEVERINCLUDE=1
REM BFCPEVERVERSION=1.2.0.0 REM BFCPEVERVERSION=1.2.1.0
REM BFCPEVERPRODUCT=I2Pd Browser Portable REM BFCPEVERPRODUCT=I2Pd Browser Portable
REM BFCPEVERDESC=I2Pd Browser REM BFCPEVERDESC=I2Pd Browser
REM BFCPEVERCOMPANY=PurpleI2P REM BFCPEVERCOMPANY=PurpleI2P
REM BFCPEVERCOPYRIGHT=Copyright © 2013-2016 PurpleI2P Project REM BFCPEVERCOPYRIGHT=Copyright © 2013-2017 PurpleI2P Project
REM BFCPEOPTIONEND REM BFCPEOPTIONEND
REM Copyright (c) 2013-2017, The PurpleI2P Project REM Copyright (c) 2013-2017, The PurpleI2P Project

View File

@ -1,4 +1,9 @@
@echo off @echo off
REM Copyright (c) 2013-2017, The PurpleI2P Project
REM This file is part of Purple i2pd project and licensed under BSD3
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
@ -18,7 +23,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%%2045.7.0/FirefoxPortableESR_45.7.0_%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%%2045.8.0/FirefoxPortableESR_45.8.0_%locale%.paf.exe %$X%
if errorlevel 1 ( if errorlevel 1 (
echo ERROR:%ErrorLevel% echo ERROR:%ErrorLevel%
pause pause
@ -32,8 +37,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_45.7.0_%locale%.paf.exe > nul 7z x -y -o..\Firefox FirefoxPortableESR_45.8.0_%locale%.paf.exe > nul
del /Q FirefoxPortableESR_45.7.0_%locale%.paf.exe del /Q FirefoxPortableESR_45.8.0_%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

View File

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

View File

@ -10,7 +10,7 @@ REM
echo ‘®§¤ ¥¬ 7z SFX - á ¬®à á¯ ª®¢ë¢ î騩áï  à娢... echo ‘®§¤ ¥¬ 7z SFX - á ¬®à á¯ ª®¢ë¢ î騩áï  à娢...
REM <20>  ¢ë室¥ ¯®«ãç ¥¬ á ¬®à á¯ ª®¢ë¢ î騩áï  à娢,  à娢 ¯®á«¥ í⮣® 㤠«ï¥¬. REM <20>  ¢ë室¥ ¯®«ãç ¥¬ á ¬®à á¯ ª®¢ë¢ î騩áï  à娢,  à娢 ¯®á«¥ í⮣® 㤠«ï¥¬.
copy /b 7zsd_LZMA2_i2pdbrowser_1.2.sfx + config.txt + I2PdBrowserPortable.7z I2PdBrowserPortable_1.2.exe >> nul copy /b 7zsd_LZMA2_i2pdbrowser_1.2.1.sfx + config.txt + I2PdBrowserPortable.7z I2PdBrowserPortable_1.2.1.exe >> nul
del I2PdBrowserPortable.7z >> nul del I2PdBrowserPortable.7z >> nul
echo ƒ®â®¢®! echo ƒ®â®¢®!

View File

@ -3,10 +3,10 @@
; See full license text in LICENSE file at top of project tree ; See full license text in LICENSE file at top of project tree
;!@Install@!UTF-8! ;!@Install@!UTF-8!
GUIFlags="2+4+8+16+32+64+1024+2048+4096" GUIFlags="2+4+8+16+32+64+1024+2048+4096"
Title="Установка I2Pd Browser Portable" Title="Extracting I2Pd Browser Portable"
BeginPromptTimeout="30" BeginPromptTimeout="15"
BeginPrompt="Сейчас будет произведено извлечение:\n\tI2Pd Browser Portable" BeginPrompt="Now we will extract: I2Pd Browser Portable"
ExtractTitle="Подождите..." ExtractTitle="Please wait..."
ExtractDialogText="Распаковка файлов..." ExtractDialogText="Extracting files..."
InstallPath="%UserDesktop%\\I2PdBrowserPortable" InstallPath="%UserDesktop%\\I2PdBrowserPortable"
;!@InstallEnd@! ;!@InstallEnd@!

View File

@ -9,11 +9,11 @@ REM BFCPEEMBEDDELETE=1
REM BFCPEADMINEXE=0 REM BFCPEADMINEXE=0
REM BFCPEINVISEXE=0 REM BFCPEINVISEXE=0
REM BFCPEVERINCLUDE=1 REM BFCPEVERINCLUDE=1
REM BFCPEVERVERSION=1.2.0.0 REM BFCPEVERVERSION=1.2.1.0
REM BFCPEVERPRODUCT=I2Pd Browser Portable REM BFCPEVERPRODUCT=I2Pd Browser Portable
REM BFCPEVERDESC=I2Pd Browser REM BFCPEVERDESC=I2Pd Browser
REM BFCPEVERCOMPANY=PurpleI2P REM BFCPEVERCOMPANY=PurpleI2P
REM BFCPEVERCOPYRIGHT=Copyright © 2013-2016 PurpleI2P Project REM BFCPEVERCOPYRIGHT=Copyright © 2013-2017 PurpleI2P Project
REM BFCPEOPTIONEND REM BFCPEOPTIONEND
REM Copyright (c) 2013-2017, The PurpleI2P Project REM Copyright (c) 2013-2017, The PurpleI2P Project