Browse Source

1.2 (windows builder)

R4SAS 8 years ago
parent
commit
7df0a7b69a
  1. BIN
      windows/build/7z.dll
  2. 85
      windows/build/build.cmd

BIN
windows/build/7z.dll

Binary file not shown.

85
windows/build/build.cmd

@ -6,23 +6,34 @@ call :GET_LOCALE
call :GET_PROXY call :GET_PROXY
call :GET_ARCH call :GET_ARCH
echo ‘¡®àª  I2Pd Browser Portable if "%locale%"=="Russian" (
echo ‘¨á⥬­ ï «®ª «ì: %locale%,  àå¨â¥ªâãà : %xOS% echo ‘¡®àª  I2Pd Browser Portable
echo. echo ‘¨á⥬­ ï «®ª «ì: %locale%,  àå¨â¥ªâãà : %xOS%
echo £à㧪  ãáâ ­®¢é¨ª  Firefox Portable ESR echo.
echo £à㧪  ãáâ ­®¢é¨ª  Firefox Portable ESR
) else (
echo Building I2Pd Browser Portable
echo System 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%%2045.6.0/FirefoxPortableESR_45.6.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.7.0/FirefoxPortableESR_45.7.0_%locale%.paf.exe %$X%
if errorlevel 1 ( if errorlevel 1 (
echo ERROR:%ErrorLevel% echo ERROR:%ErrorLevel%
pause pause
goto :eof exit
) else (echo OK!) ) else (echo OK!)
echo. echo.
echo <EFBFBD> á¯ ª®¢ª  ãáâ ­®¢é¨ª  ¨ 㤠«¥­¨¥ ­¥ ­ã¦­ëå ä ©«®¢ if "%locale%"=="Russian" (
echo <EFBFBD> á¯ ª®¢ª  ãáâ ­®¢é¨ª  ¨ 㤠«¥­¨¥ ­¥ ­ã¦­ëå ä ©«®¢
) else (
echo Unpacking the installer and delete unnecessary files
)
7z x -y -o..\Firefox FirefoxPortableESR_45.6.0_%locale%.paf.exe > nul 7z x -y -o..\Firefox FirefoxPortableESR_45.7.0_%locale%.paf.exe > nul
del /Q FirefoxPortableESR_45.6.0_%locale%.paf.exe del /Q FirefoxPortableESR_45.7.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
@ -49,7 +60,11 @@ rem rmdir /S /Q ..\Firefox\App\Firefox
del /Q ..\Firefox\App\Firefox64\update*.* del /Q ..\Firefox\App\Firefox64\update*.*
rem ) rem )
echo Žâª«î祭¨¥ ®âç¥â®¢ ® ¯ ¤¥­¨¨ if "%locale%"=="Russian" (
echo Žâª«î祭¨¥ ®âç¥â®¢ ® ¯ ¤¥­¨¨
) else (
echo Disabling crash reports
)
rem if "xOS"=="x86" ( rem if "xOS"=="x86" (
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
@ -62,37 +77,51 @@ rem ) else (
sed -i "s/ServerURL=.*/ServerURL=-/" ..\Firefox\App\Firefox64\webapprt\webapprt.ini sed -i "s/ServerURL=.*/ServerURL=-/" ..\Firefox\App\Firefox64\webapprt\webapprt.ini
rem ) rem )
echo £à㧪  ¤®¯®«­¥­¨ï NoScript if "%locale%"=="Russian" (
echo £à㧪  ¤®¯®«­¥­¨ï NoScript
"%CURL%" -L -f -# -O https://addons.mozilla.org/firefox/downloads/latest/noscript/addon-722-latest.xpi
if errorlevel 1 (echo ERROR:%ErrorLevel% && pause && goto :eof) else (echo OK!)
if "xOS"=="x86" (
move /Y addon-722-latest.xpi ..\Firefox\App\Firefox\browser\extensions\{73a6fe31-595d-460b-a920-fcc0f8843232}.xpi > nul
) else ( ) else (
move /Y addon-722-latest.xpi ..\Firefox\App\Firefox64\browser\extensions\{73a6fe31-595d-460b-a920-fcc0f8843232}.xpi > nul echo Downloading NoScript extension
) )
"%CURL%" -L -f -# -O https://addons.mozilla.org/firefox/downloads/latest/noscript/addon-722-latest.xpi
if errorlevel 1 ( echo ERROR:%ErrorLevel% && pause && exit ) else (echo OK!)
copy /Y addon-722-latest.xpi ..\Firefox\App\Firefox\browser\extensions\{73a6fe31-595d-460b-a920-fcc0f8843232}.xpi > nul
copy /Y addon-722-latest.xpi ..\Firefox\App\Firefox64\browser\extensions\{73a6fe31-595d-460b-a920-fcc0f8843232}.xpi > nul
del /Q addon-722-latest.xpi
echo. echo.
echo Š®¯¨à®¢ ­¨¥ ä ©«®¢ ­ áâ஥ª ¢ ¯ ¯ªã Firefox if "%locale%"=="Russian" (
echo Š®¯¨à®¢ ­¨¥ ä ©«®¢ ­ áâ஥ª ¢ ¯ ¯ªã Firefox
) else (
echo Copying Firefox settings
)
copy /Y profile\* ..\Firefox\App\DefaultData\profile\ > nul copy /Y profile\* ..\Firefox\App\DefaultData\profile\ > nul
copy /Y settings\FirefoxPortable.ini ..\Firefox\ > nul copy /Y settings\FirefoxPortable.ini ..\Firefox\ > nul
echo £à㧪  I2Pd if "%locale%"=="Russian" (
echo £à㧪  I2Pd
) else (
echo Downloading I2Pd
)
if "xOS"=="x86" ( if "xOS"=="x86" (
"%CURL%" -L -f -# -O https://github.com/PurpleI2P/i2pd/releases/download/2.11.0/i2pd_2.11.0_win32_mingw.zip "%CURL%" -L -f -# -O https://github.com/PurpleI2P/i2pd/releases/download/2.12.0/i2pd_2.12.0_win32_mingw.zip
if errorlevel 1 (echo ERROR:%ErrorLevel%) else (echo OK!) if errorlevel 1 ( echo ERROR:%ErrorLevel% && pause && exit ) else (echo OK!)
7z x -y -o..\i2pd i2pd_2.11.0_win32_mingw.zip > nul 7z x -y -o..\i2pd i2pd_2.12.0_win32_mingw.zip > nul
del /Q i2pd_2.11.0_win32_mingw.zip del /Q i2pd_2.12.0_win32_mingw.zip
) else ( ) else (
"%CURL%" -L -f -# -O https://github.com/PurpleI2P/i2pd/releases/download/2.11.0/i2pd_2.11.0_win64_mingw.zip "%CURL%" -L -f -# -O https://github.com/PurpleI2P/i2pd/releases/download/2.12.0/i2pd_2.12.0_win64_mingw.zip
if errorlevel 1 (echo ERROR:%ErrorLevel%) else (echo OK!) if errorlevel 1 ( echo ERROR:%ErrorLevel% && pause && exit ) else (echo OK!)
7z x -y -o..\i2pd i2pd_2.11.0_win64_mingw.zip > nul 7z x -y -o..\i2pd i2pd_2.12.0_win64_mingw.zip > nul
del /Q i2pd_2.11.0_win64_mingw.zip del /Q i2pd_2.12.0_win64_mingw.zip
) )
xcopy /E /I /Y i2pd ..\i2pd > nul xcopy /E /I /Y i2pd ..\i2pd > nul
echo. echo.
echo I2Pd Browser portable £®â®¢ ª § ¯ãáªã! if "%locale%"=="Russian" (
echo I2Pd Browser portable £®â®¢ ª § ¯ãáªã!
) else (
echo I2Pd Browser portable is ready to start!
)
pause pause
exit exit

Loading…
Cancel
Save