mirror of
https://github.com/PurpleI2P/i2pdbrowser
synced 2025-02-04 19:04:36 +00:00
Corrected some typos and incorrect spelling in build.sh/.cmd.
This commit is contained in:
parent
6157052158
commit
aeb3a541b9
@ -14,11 +14,11 @@ ftpmirror="https://ftp.mozilla.org/pub/$application/releases/$version"
|
|||||||
|
|
||||||
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 "'cURL' does not seem to be installed. The script needs it!";
|
||||||
exit 1;
|
exit 1;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "This script prepearing $application $version for use with I2Pd"
|
echo "This script is preparing $application $version for use with I2Pd"
|
||||||
|
|
||||||
file="$application-$version.tar.bz2"
|
file="$application-$version.tar.bz2"
|
||||||
filepath="linux-$arch/$language/$file"
|
filepath="linux-$arch/$language/$file"
|
||||||
@ -26,13 +26,13 @@ filepath="linux-$arch/$language/$file"
|
|||||||
echo "Downloading $application..."
|
echo "Downloading $application..."
|
||||||
curl -L -f -# -O $ftpmirror/$filepath
|
curl -L -f -# -O $ftpmirror/$filepath
|
||||||
if [ $? -ne 0 ]; then # Not found error, trying to cut language variable
|
if [ $? -ne 0 ]; then # Not found error, trying to cut language variable
|
||||||
echo "[TRY 2] I'll try download Firefox with shortener language code";
|
echo "[TRY 2] I'll try downloading Firefox with shorter language code";
|
||||||
language=$(echo $language | cut -c-2)
|
language=$(echo $language | cut -c-2)
|
||||||
# re-create variable with cutted lang
|
# re-create variable with cutted lang
|
||||||
filepath="linux-$arch/$language/$file"
|
filepath="linux-$arch/$language/$file"
|
||||||
curl -L -f -# -O $ftpmirror/$filepath
|
curl -L -f -# -O $ftpmirror/$filepath
|
||||||
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 downloading Firefox with the English language code";
|
||||||
language="en_US"
|
language="en_US"
|
||||||
# re-create lang variable
|
# re-create lang variable
|
||||||
filepath="linux-$arch/$language/$file"
|
filepath="linux-$arch/$language/$file"
|
||||||
@ -45,7 +45,7 @@ if [ $? -ne 0 ]; then # Not found error, trying to cut language variable
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -f $file ]; then
|
if [ ! -f $file ]; then
|
||||||
echo "[Error] Can't find downloaded file. Is it really exists?"
|
echo "[Error] Can't find downloaded file. Does it really exist?"
|
||||||
exit 1;
|
exit 1;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -85,7 +85,7 @@ echo "Downloading NoScript extension..."
|
|||||||
curl -L -f -# -O https://addons.mozilla.org/firefox/downloads/latest/noscript/addon-722-latest.xpi
|
curl -L -f -# -O https://addons.mozilla.org/firefox/downloads/latest/noscript/addon-722-latest.xpi
|
||||||
mv addon-722-latest.xpi ../app/browser/extensions/{73a6fe31-595d-460b-a920-fcc0f8843232}.xpi
|
mv addon-722-latest.xpi ../app/browser/extensions/{73a6fe31-595d-460b-a920-fcc0f8843232}.xpi
|
||||||
|
|
||||||
echo "Adding standart configs..."
|
echo "Adding standard configs..."
|
||||||
cp profile/* ../data/
|
cp profile/* ../data/
|
||||||
mkdir -p ../app/browser/defaults
|
mkdir -p ../app/browser/defaults
|
||||||
cp -r preferences ../app/browser/defaults/
|
cp -r preferences ../app/browser/defaults/
|
||||||
|
@ -14,10 +14,10 @@ call :GET_PROXY
|
|||||||
call :GET_ARCH
|
call :GET_ARCH
|
||||||
|
|
||||||
if "%locale%"=="Russian" (
|
if "%locale%"=="Russian" (
|
||||||
echo ‘¡®àª I2Pd Browser Portable
|
echo <EFBFBD><EFBFBD><EFBFBD>ઠ I2Pd Browser Portable
|
||||||
echo ‘¨á⥬ ï «®ª «ì: %locale%, àå¨â¥ªâãà : %xOS%
|
echo <EFBFBD><EFBFBD><EFBFBD>⥬<EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: %locale%, <20><><EFBFBD><EFBFBD>⥪<EFBFBD><E2A5AA><EFBFBD><EFBFBD>: %xOS%
|
||||||
echo.
|
echo.
|
||||||
echo ‡ £à㧪 ãáâ ®¢é¨ª Firefox Portable ESR
|
echo <EFBFBD><EFBFBD><EFBFBD><EFBFBD>㧪<EFBFBD> <20><>⠭<EFBFBD><E2A0AD>騪<EFBFBD> Firefox Portable ESR
|
||||||
) else (
|
) else (
|
||||||
echo Building I2Pd Browser Portable
|
echo Building I2Pd Browser Portable
|
||||||
echo System locale: %locale%, architecture: %xOS%
|
echo System locale: %locale%, architecture: %xOS%
|
||||||
@ -34,9 +34,9 @@ if errorlevel 1 (
|
|||||||
|
|
||||||
echo.
|
echo.
|
||||||
if "%locale%"=="Russian" (
|
if "%locale%"=="Russian" (
|
||||||
echo <20> ᯠª®¢ª ãáâ ®¢é¨ª ¨ 㤠«¥¨¥ ¥ ã¦ëå ä ©«®¢
|
echo <20><EFBFBD>ᯠ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>⠭<EFBFBD><E2A0AD>騪<EFBFBD> <20> 㤠<><E3A4A0><EFBFBD><EFBFBD><EFBFBD> <20><> <20>㦭<EFBFBD><E3A6AD> 䠩<><E4A0A9><EFBFBD>
|
||||||
) else (
|
) else (
|
||||||
echo Unpacking the installer and delete unnecessary files
|
echo Unpacking the installer and deleting unnecessary files
|
||||||
)
|
)
|
||||||
|
|
||||||
7z x -y -o..\Firefox FirefoxPortableESR_%FFversion%_%locale%.paf.exe > nul
|
7z x -y -o..\Firefox FirefoxPortableESR_%FFversion%_%locale%.paf.exe > nul
|
||||||
@ -69,7 +69,7 @@ rem rmdir /S /Q ..\Firefox\App\Firefox
|
|||||||
rem )
|
rem )
|
||||||
|
|
||||||
if "%locale%"=="Russian" (
|
if "%locale%"=="Russian" (
|
||||||
echo Žâª«î票¥ ®âç¥â®¢ ® ¯ ¤¥¨¨
|
echo <EFBFBD>⪫<EFBFBD>祭<EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>⮢ <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||||
) else (
|
) else (
|
||||||
echo Disabling crash reports
|
echo Disabling crash reports
|
||||||
)
|
)
|
||||||
@ -82,7 +82,7 @@ rem ) else (
|
|||||||
rem )
|
rem )
|
||||||
|
|
||||||
if "%locale%"=="Russian" (
|
if "%locale%"=="Russian" (
|
||||||
echo ‡ £à㧪 ¤®¯®«¥¨ï NoScript
|
echo <EFBFBD><EFBFBD><EFBFBD><EFBFBD>㧪<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> NoScript
|
||||||
) else (
|
) else (
|
||||||
echo Downloading NoScript extension
|
echo Downloading NoScript extension
|
||||||
)
|
)
|
||||||
@ -95,7 +95,7 @@ del /Q addon-722-latest.xpi
|
|||||||
|
|
||||||
echo.
|
echo.
|
||||||
if "%locale%"=="Russian" (
|
if "%locale%"=="Russian" (
|
||||||
echo Š®¯¨à®¢ ¨¥ ä ©«®¢ áâ஥ª ¢ ¯ ¯ªã Firefox
|
echo <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 䠩<><E4A0A9><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD> Firefox
|
||||||
) else (
|
) else (
|
||||||
echo Copying Firefox settings
|
echo Copying Firefox settings
|
||||||
)
|
)
|
||||||
@ -108,7 +108,7 @@ copy /Y preferences\* ..\Firefox\App\Firefox\browser\defaults\preferences\ > nul
|
|||||||
copy /Y preferences\* ..\Firefox\App\Firefox64\browser\defaults\preferences\ > nul
|
copy /Y preferences\* ..\Firefox\App\Firefox64\browser\defaults\preferences\ > nul
|
||||||
|
|
||||||
if "%locale%"=="Russian" (
|
if "%locale%"=="Russian" (
|
||||||
echo ‡ £à㧪 I2Pd
|
echo <EFBFBD><EFBFBD><EFBFBD><EFBFBD>㧪<EFBFBD> I2Pd
|
||||||
) else (
|
) else (
|
||||||
echo Downloading I2Pd
|
echo Downloading I2Pd
|
||||||
)
|
)
|
||||||
@ -127,9 +127,9 @@ xcopy /E /I /Y i2pd ..\i2pd > nul
|
|||||||
|
|
||||||
echo.
|
echo.
|
||||||
if "%locale%"=="Russian" (
|
if "%locale%"=="Russian" (
|
||||||
echo I2Pd Browser portable £®â®¢ ª § ¯ãáªã!
|
echo I2Pd Browser Portable <20><>⮢ <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>!
|
||||||
) else (
|
) else (
|
||||||
echo I2Pd Browser portable is ready to start!
|
echo I2Pd Browser Portable is ready to start!
|
||||||
)
|
)
|
||||||
pause
|
pause
|
||||||
exit
|
exit
|
||||||
@ -152,4 +152,4 @@ set xOS=x86
|
|||||||
if defined PROCESSOR_ARCHITEW6432 (set xOS=x64) else if "%PROCESSOR_ARCHITECTURE%"=="AMD64" set xOS=x64
|
if defined PROCESSOR_ARCHITEW6432 (set xOS=x64) else if "%PROCESSOR_ARCHITECTURE%"=="AMD64" set xOS=x64
|
||||||
goto :eof
|
goto :eof
|
||||||
|
|
||||||
:eof
|
:eof
|
||||||
|
Loading…
x
Reference in New Issue
Block a user