acnapyx
Advanced Member | Редактировать | Профиль | Сообщение | Цитировать | Сообщить модератору fzdn.cmd Код: @echo off rem fzdn v2.1 setlocal enableextensions if "%1" == "" (goto mhelp) if "%1" == "--help" (goto mhelp) if "%1" == "-h" (goto mhelp) if not "%5" == "" (goto m3) if not "%3" == "" (goto m2) else (goto m1) :m3 if "%5" == "s" (call :sfz %6 & goto m2) if "%5" == "l" (call :lfz %6 & goto m2) if "%5" == "c" (call :cfz %6) :m2 if "%3" == "s" (call :sfz %4 & goto m1) if "%3" == "l" (call :lfz %4 & goto m1) if "%3" == "c" (call :cfz %4) :m1 if "%1" == "s" (call :sfz %2) if "%1" == "l" (call :lfz %2) if "%1" == "c" (call :cfz %2) exit :cfz setlocal enableextensions if "%1" == "" ( echo. echo Error! Required parameter is missing, see help. Download is cancel. echo. pause goto mhelp ) set vr=%1:0,5% if /i "%vr%" leq "3.63.2" ( set ext=bz2 ) else ( set ext=xz) for %%A in ( .sha512 _macosx-x86.app.tar.bz2 _win32-setup.exe _win32.zip _win64-setup.exe _win64.zip _i686-linux-gnu.tar.%ext% _src.tar.%ext% _x86_64-linux-gnu.tar.%ext% ) do curl -C - -LRSs --create-dirs --output FileZilla\client\FileZilla_%1%%A https://download.filezilla-project.org/client/FileZilla_%1%%A goto:eof :lfz setlocal enableextensions if "%1" == "" ( echo. echo Error! Required parameter is missing, see help. Download is cancel. echo. pause goto mhelp ) curl -C - -LRSs --create-dirs --output FileZilla\libfilezilla\libfilezilla-%1.sha512 https://download.filezilla-project.org/libfilezilla/libfilezilla-%1.sha512 if /i "%1" leq "0.41.1" ( set ext=bz2 ) else ( set ext=xz ) curl -C - -LRSs --create-dirs --output FileZilla\libfilezilla\libfilezilla-%1.tar.%ext% https://download.filezilla-project.org/libfilezilla/libfilezilla-%1.tar.%ext% goto:eof :sfz setlocal enableextensions if "%1" == "" ( echo. echo Error! Required parameter is missing, see help. Download is cancel. echo. pause goto :mhelp ) set vr=%1:0,5% if /i "%vr%" leq "1.6.7" ( set ext=bz2 ) else ( set ext=xz ) for %%A in ( .sha512 _macosx-x86.pkg _macosx-x86.tar.bz2 _win64-setup.exe _x86_64-linux-gnu.deb _src.tar.%ext% _x86_64-linux-gnu.tar.%ext% ) do curl -C - -LRSs --create-dirs --output FileZilla\server\FileZilla_Server_%1%%A https://download.filezilla-project.org/server/FileZilla_Server_%1%%A goto:eof :mhelp echo. echo fznd.cmd - FileZilla Client, FileZilla Server and libfilezilla download script. echo. echo Synopsis: echo. echo This script designed for download FileZilla FTP Client, FileZilla Server echo or libfilezilla use cURL. All downloaded files and placed in to Filezilla\Client echo Filezilla\libfilezilla and Filezilla\Server folders by application rules echo and can be checked using any utility who knows how to check the integrity of echo files according to the SHA-512 algorithm. echo. echo Usage: echo. echo fzdn [c ^<version^>] [l ^<version^>] [s ^<version^>] or fzdn l ^<version^> echo or fzdn s ^<version^> or fzdn c ^<version^> l ^<version^> s ^<version^> echo. echo Required parameters and value: echo. echo c ^<version^> - download FileZilla Client, where is the parameter ^<version^> have value 3.0.0-beta1 or neewer. echo l ^<version^> - download libfilezilla, where is the parameter ^<version^> have value 0.1.0 or neewer. echo s ^<version^> - download FileZilla Server, where is the parameter ^<version^> have value 0.8.1 or neewer. echo ^<version^> - needed download version number. echo. echo Minamal required is two parameters - ^<name^> is have value [ c ^| l ^| s ] and ^<version^> echo. echo Notes: echo. echo Legacy version and FileZilla Client Pro version not supported by design! echo. echo Examples: echo. echo fzdn c 3.43.0 l 0.30.0 or fzdn c 3.43.0 or fzdn l 0.30.0 or fzdn s 1.0.0 echo or fzdn -c 3.43.0 l 0.30.0 s 1.0.0 or fzdn l 0.30.0 c 3.43.0 s 1.0.0 echo or fzdn l 0.42.2 s 1.7.0-rc2 c 3.64.0 or fzdn l 0.42.1 c 3.64.0 s 1.7.0-rc2 echo. echo History: echo. echo v1.0, 24.09.2019, Initial release for cURL 7.6.6 or newer only echo v2.0, 27.04.2023, Full rewrites, support FileZilla Client 1.7.0-rc1, Server 1.6.4-rc1, echo libfilezilla 0.42.0 or newer, support any version cURL. echo v2.1, 28.04.2023, New parameters parser, new key "c" for download FileZilla Client, echo rename script up to fzdn.cmd. echo. pause exit /b | сам cURL берём здесь - https://curl.se/windows/ (это официальная MinGW сборка cURL для Windows не требующая дополнительных DLL, нам из неё достаточно только curl.exe и curl-ca-bundle.crt). | Всего записей: 1853 | Зарегистр. 09-04-2002 | Отправлено: 17:56 18-07-2002 | Исправлено: ivan3259, 06:21 16-04-2024 |
|