Evgeniy Antonyuk
c43727f295
* Remove services in packages * Remove services in win package * Update the nodejs version * Update the elasticsearch version * Change version when configuring elasticsearch in win package
69 lines
3.7 KiB
Batchfile
69 lines
3.7 KiB
Batchfile
REM echo ######## Set variables ########
|
|
set "publisher="Ascensio System SIA""
|
|
set "nuget="%cd%\thirdparty\SimpleRestServices\src\.nuget\NuGet.exe""
|
|
set "nginx_version=1.21.1"
|
|
set "environment=test"
|
|
|
|
REM echo ######## Extracting and preparing files to build ########
|
|
%sevenzip% x build\install\win\nginx-%nginx_version%.zip -o"build\install\win\Files" -y
|
|
xcopy "build\install\win\Files\nginx-%nginx_version%" "build\install\win\Files\nginx" /s /y /b /i
|
|
rmdir build\install\win\Files\nginx-%nginx_version% /s /q
|
|
md build\install\win\Files\nginx\temp
|
|
md build\install\win\Files\nginx\logs
|
|
md build\install\win\Files\tools
|
|
md build\install\win\Files\Logs
|
|
md build\install\win\Files\Data
|
|
md build\install\win\Files\products\ASC.Files\server\temp
|
|
md build\install\win\Files\products\ASC.People\server\temp
|
|
md build\install\win\Files\services\ASC.Data.Backup\service\temp
|
|
md build\install\win\Files\services\ASC.Files.Service\service\temp
|
|
md build\install\win\Files\services\ASC.Notify\service\temp
|
|
md build\install\win\Files\services\ASC.Studio.Notify\service\temp
|
|
md build\install\win\Files\services\ASC.Data.Backup.BackgroundTasks\service\temp
|
|
md build\install\win\Files\services\ASC.ClearEvents\service\temp
|
|
md build\install\win\Files\services\ASC.Web.Api\service\temp
|
|
md build\install\win\Files\services\ASC.Web.Studio\service\temp
|
|
copy build\install\win\WinSW.NET4.exe "build\install\win\Files\tools\Proxy.exe" /y
|
|
copy build\install\win\tools\Proxy.xml "build\install\win\Files\tools\Proxy.xml" /y
|
|
copy build\install\win\WinSW3.0.0.exe "build\install\win\Files\tools\Socket.IO.exe" /y
|
|
copy build\install\win\tools\Socket.IO.xml "build\install\win\Files\tools\Socket.IO.xml" /y
|
|
copy build\install\win\WinSW3.0.0.exe "build\install\win\Files\tools\SsoAuth.exe" /y
|
|
copy build\install\win\tools\SsoAuth.xml "build\install\win\Files\tools\SsoAuth.xml" /y
|
|
copy build\install\win\WinSW3.0.0.exe "build\install\win\Files\tools\DocEditor.exe" /y
|
|
copy build\install\win\tools\DocEditor.xml "build\install\win\Files\tools\DocEditor.xml" /y
|
|
copy build\install\win\WinSW3.0.0.exe "build\install\win\Files\tools\Login.exe" /y
|
|
copy build\install\win\tools\Login.xml "build\install\win\Files\tools\Login.xml" /y
|
|
copy "build\install\win\nginx.conf" "build\install\win\Files\nginx\conf\nginx.conf" /y
|
|
rmdir build\install\win\publish /s /q
|
|
|
|
::edit environment
|
|
%sed% -i "s/\(\W\)PRODUCT.ENVIRONMENT.SUB\(\W\)/\1%environment%\2/g" build\install\win\DocSpace.aip
|
|
|
|
::delete nginx configs
|
|
del /f /q build\install\win\Files\nginx\conf\onlyoffice-login.conf
|
|
del /f /q build\install\win\Files\nginx\conf\onlyoffice-story.conf
|
|
|
|
|
|
REM echo ######## Build Utils ########
|
|
%nuget% install %cd%\build\install\win\CustomActions\C#\Utils\packages.config -OutputDirectory %cd%\build\install\win\CustomActions\C#\Utils\packages
|
|
%msbuild% build\install\win\CustomActions\C#\Utils\Utils.csproj
|
|
copy build\install\win\CustomActions\C#\Utils\bin\Debug\Utils.CA.dll build\install\win\Utils.CA.dll /y
|
|
rmdir build\install\win\CustomActions\C#\Utils\bin /s /q
|
|
rmdir build\install\win\CustomActions\C#\Utils\obj /s /q
|
|
|
|
REM echo ######## Delete temp files ########
|
|
del /f /q build\install\win\*.back.*
|
|
|
|
REM echo ######## Build MySQL Server Installer ########
|
|
iscc /Qp /S"byparam="signtool" sign /a /n "%publisher%" /t http://timestamp.digicert.com $f" "build\install\win\MySQL Server Installer Runner.iss"
|
|
|
|
REM echo ######## Build DocSpace package ########
|
|
%AdvancedInstaller% /edit build\install\win\DocSpace.aip /SetVersion %BUILD_VERSION%.%BUILD_NUMBER%
|
|
|
|
IF "%SignBuild%"=="true" (
|
|
:%AdvancedInstaller% /edit build\install\win\DocSpace.aip /SetSig
|
|
:%AdvancedInstaller% /edit build\install\win\DocSpace.aip /SetDigitalCertificateFile -file %onlyoffice_codesign_path% -password "%onlyoffice_codesign_password%"
|
|
)
|
|
|
|
%AdvancedInstaller% /rebuild build\install\win\DocSpace.aip
|