51ba7c8628
* Add DocEditor service Update windows installation project on develop * Add ASC.Login service * Delete onlyoffice-login.conf * Add json configs substitutions * Edit StartMigrationRunner custom action * Set service run as NT AUTHORITY\LocalService * Move config file substitutions to project * Remove condition to SetMACHINEKEY * Revert "Set service run as NT AUTHORITY\LocalService" This reverts commit 3e9c578a652e38f346f7e7fd52eca4ab72dcf537. * Fix nginx conf substitution * Add Local Service permitions * Add folders permitions Move node.js service logs * Fix * Edit logpath
63 lines
1.7 KiB
PowerShell
63 lines
1.7 KiB
PowerShell
$AllProtocols = [System.Net.SecurityProtocolType]'Ssl3,Tls,Tls11,Tls12,Tls13'
|
|
[System.Net.ServicePointManager]::SecurityProtocol = $AllProtocols
|
|
|
|
# Function 'DownloadComponents' downloads some components that need on build satge
|
|
#
|
|
# It gets two parameters list of maps and download path
|
|
#
|
|
# The map consists of: download_allways ($true/$false) - should this component should download every time
|
|
# name - name of the dowmloaded component
|
|
# link - component download link
|
|
|
|
function DownloadComponents {
|
|
|
|
param ( $prereq_list, $path )
|
|
|
|
ForEach ( $item in $prereq_list ) {
|
|
$url = $item.link
|
|
$output = $path + $item.name
|
|
|
|
if( $item.download_allways ){
|
|
[system.console]::WriteLine("Downloading $url")
|
|
Invoke-WebRequest -Uri $url -OutFile $output
|
|
} else {
|
|
if(![System.IO.File]::Exists($output)){
|
|
[system.console]::WriteLine("Downloading $url")
|
|
Invoke-WebRequest -Uri $url -OutFile $output
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
$nginx_version = '1.21.1'
|
|
|
|
$path_prereq = "${pwd}\build\install\win\"
|
|
|
|
$prerequisites = @(
|
|
@{
|
|
download_allways = $false;
|
|
name = "nginx-${nginx_version}.zip";
|
|
link = "https://nginx.org/download/nginx-${nginx_version}.zip";
|
|
}
|
|
|
|
@{
|
|
download_allways = $false;
|
|
name = "WinSW.NET4new.exe";
|
|
link = "https://github.com/winsw/winsw/releases/download/v2.11.0/WinSW.NET4.exe";
|
|
}
|
|
)
|
|
|
|
$path_nuget_packages = "${pwd}\.nuget\packages\"
|
|
|
|
$nuget_packages = @(
|
|
@{
|
|
download_allways = $false;
|
|
name = "rabbitmq.client.3.6.5.nupkg";
|
|
link = "https://www.nuget.org/api/v2/package/RabbitMQ.Client/3.6.5";
|
|
}
|
|
)
|
|
|
|
DownloadComponents $prerequisites $path_prereq
|
|
|
|
DownloadComponents $nuget_packages $path_nuget_packages
|