From ac337dbc5d608611b1ecb229193885fbe77ba1ec Mon Sep 17 00:00:00 2001 From: Aris Ripandi Date: Fri, 20 Dec 2019 05:52:09 +0700 Subject: [PATCH] add win-acme lets encrypt client --- installer.iss | 2 ++ scripts/get_winacme.bat | 13 +++++++++++++ setup.bat | 2 ++ 3 files changed, 17 insertions(+) create mode 100644 scripts/get_winacme.bat diff --git a/installer.iss b/installer.iss index ae53443..3e5bebb 100644 --- a/installer.iss +++ b/installer.iss @@ -170,6 +170,7 @@ procedure CreatePathEnvironment; begin WizardForm.StatusLabel.Caption := 'Adding PATH environment variables ...'; EnvAddPath(ExpandConstant('{app}\utils')); + EnvAddPath(ExpandConstant('{app}\pkg\winacme')); EnvAddPath(ExpandConstant('{app}\pkg\httpd\bin')); EnvAddPath(ExpandConstant('{app}\pkg\imagick\bin')); EnvAddPath(ExpandConstant('{app}\pkg\php\php-7.4-ts')); @@ -180,6 +181,7 @@ end; procedure RemovePathEnvironment; begin EnvRemovePath(ExpandConstant('{app}\utils')); + EnvRemovePath(ExpandConstant('{app}\pkg\winacme')); EnvRemovePath(ExpandConstant('{app}\pkg\httpd\bin')); EnvRemovePath(ExpandConstant('{app}\pkg\imagick\bin')); EnvRemovePath(ExpandConstant('{app}\pkg\php\php-7.4-ts')); diff --git a/scripts/get_winacme.bat b/scripts/get_winacme.bat new file mode 100644 index 0000000..f1bdc57 --- /dev/null +++ b/scripts/get_winacme.bat @@ -0,0 +1,13 @@ +@echo off +color 08 + +:: ionCube Loader VC15 +if not exist "%TMPDIR%\win-acme-x64.zip" ( + echo. && echo ^> Downloading ionCube loader ... + %CURL% -L# "https://github.com/PKISharp/win-acme/releases/download/v%ver_winacme%/win-acme.v%ver_winacme%.x64.pluggable.zip" -o "%TMPDIR%\win-acme-x64.zip" +) +if exist "%TMPDIR%\win-acme-x64.zip" ( + echo. && echo ^> Extracting Win ACME x64 ... + if exist "%ODIR%\pkg\winacme" RD /S /Q "%ODIR%\pkg\winacme" + %UNZIP% x "%TMPDIR%\win-acme-x64.zip" -o"%ODIR%\pkg\winacme" -y > nul +) diff --git a/setup.bat b/setup.bat index e73d396..d7f6ae8 100644 --- a/setup.bat +++ b/setup.bat @@ -27,6 +27,7 @@ set "ver_mailhog=1.0.0" set "ver_mhsendmail=0.2.0" set "ver_phpmyadmin=4.9.2" set "ver_acrylicdns=1.1.1" +set "ver_winacme=2.1.2.641" :: Download link set "url_php72=https://windows.php.net/downloads/releases/php-%ver_php72%-Win32-VC15-x64.zip" @@ -91,6 +92,7 @@ call %ROOT%\scripts\get_php74.bat call %ROOT%\scripts\get_ioncube.bat call %ROOT%\scripts\get_imagick.bat call %ROOT%\scripts\get_essential.bat +call %ROOT%\scripts\get_winacme.bat echo. && echo ^> Include extra utilities ... copy /Y "%ROOT%\utils\7za.dll" "%ODIR%\utils\7za.dll" > nul