s This is a combination of 7 commits.
This is the 1st commit message:
This commit is contained in:
parent
11efc039b5
commit
f554536b95
@ -23,6 +23,7 @@ echo setting up default folders
|
|||||||
if not exist "%PublishDir%\Configuration" md "%PublishDir%\Configuration"
|
if not exist "%PublishDir%\Configuration" md "%PublishDir%\Configuration"
|
||||||
move "%PublishDir%\DefaultSettings.json" "%PublishDir%\Configuration\"
|
move "%PublishDir%\DefaultSettings.json" "%PublishDir%\Configuration\"
|
||||||
if not exist "%PublishDir%\Lib\" md "%PublishDir%\Lib\"
|
if not exist "%PublishDir%\Lib\" md "%PublishDir%\Lib\"
|
||||||
|
del "%PublishDir%\Microsoft.CodeAnalysis*.dll" /F /Q
|
||||||
move "%PublishDir%\*.dll" "%PublishDir%\Lib\"
|
move "%PublishDir%\*.dll" "%PublishDir%\Lib\"
|
||||||
move "%PublishDir%\*.json" "%PublishDir%\Lib\"
|
move "%PublishDir%\*.json" "%PublishDir%\Lib\"
|
||||||
move "%PublishDir%\runtimes" "%PublishDir%\Lib\runtimes"
|
move "%PublishDir%\runtimes" "%PublishDir%\Lib\runtimes"
|
||||||
@ -30,6 +31,16 @@ move "%PublishDir%\ru" "%PublishDir%\Lib\ru"
|
|||||||
move "%PublishDir%\de" "%PublishDir%\Lib\de"
|
move "%PublishDir%\de" "%PublishDir%\Lib\de"
|
||||||
move "%PublishDir%\pt" "%PublishDir%\Lib\pt"
|
move "%PublishDir%\pt" "%PublishDir%\Lib\pt"
|
||||||
move "%PublishDir%\es" "%PublishDir%\Lib\es"
|
move "%PublishDir%\es" "%PublishDir%\Lib\es"
|
||||||
|
rmdir /Q /S "%PublishDir%\cs"
|
||||||
|
rmdir /Q /S "%PublishDir%\fr"
|
||||||
|
rmdir /Q /S "%PublishDir%\it"
|
||||||
|
rmdir /Q /S "%PublishDir%\ja"
|
||||||
|
rmdir /Q /S "%PublishDir%\ko"
|
||||||
|
rmdir /Q /S "%PublishDir%\pl"
|
||||||
|
rmdir /Q /S "%PublishDir%\pt-BR"
|
||||||
|
rmdir /Q /S "%PublishDir%\tr"
|
||||||
|
rmdir /Q /S "%PublishDir%\zh-Hans"
|
||||||
|
rmdir /Q /S "%PublishDir%\zh-Hant"
|
||||||
if exist "%PublishDir%\refs" move "%PublishDir%\refs" "%PublishDir%\Lib\refs"
|
if exist "%PublishDir%\refs" move "%PublishDir%\refs" "%PublishDir%\Lib\refs"
|
||||||
|
|
||||||
echo making start scripts
|
echo making start scripts
|
||||||
@ -40,6 +51,13 @@ echo moving front-end library dependencies
|
|||||||
if not exist "%PublishDir%\wwwroot\font" mkdir "%PublishDir%\wwwroot\font"
|
if not exist "%PublishDir%\wwwroot\font" mkdir "%PublishDir%\wwwroot\font"
|
||||||
move "WebfrontCore\wwwroot\lib\open-iconic\font\fonts\*.*" "%PublishDir%\wwwroot\font\"
|
move "WebfrontCore\wwwroot\lib\open-iconic\font\fonts\*.*" "%PublishDir%\wwwroot\font\"
|
||||||
if exist "%PublishDir%\wwwroot\lib" rd /s /q "%PublishDir%\wwwroot\lib"
|
if exist "%PublishDir%\wwwroot\lib" rd /s /q "%PublishDir%\wwwroot\lib"
|
||||||
|
if not exist "%PublishDir%\wwwroot\css" mkdir "%PublishDir%\wwwroot\css"
|
||||||
|
move "WebfrontCore\wwwroot\css\global.min.css" "%PublishDir%\wwwroot\css\global.min.css"
|
||||||
|
if not exist "%PublishDir%\wwwroot\js" mkdir "%PublishDir%\wwwroot\js"
|
||||||
|
move "%SourceDir%\WebfrontCore\wwwroot\js\global.min.js" "%PublishDir%\wwwroot\js\global.min.js"
|
||||||
|
if not exist "%PublishDir%\wwwroot\images" mkdir "%PublishDir%\wwwroot\images"
|
||||||
|
xcopy "%SourceDir%\WebfrontCore\wwwroot\images" "%PublishDir%\wwwroot\images" /E /H /C /I
|
||||||
|
|
||||||
|
|
||||||
echo setting permissions...
|
echo setting permissions...
|
||||||
cacls "%PublishDir%" /t /e /p Everyone:F
|
cacls "%PublishDir%" /t /e /p Everyone:F
|
@ -331,6 +331,9 @@ namespace IW4MAdmin.Application
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
private static IServiceCollection ConfigureServices(string[] args)
|
private static IServiceCollection ConfigureServices(string[] args)
|
||||||
{
|
{
|
||||||
|
// todo: this is a quick fix
|
||||||
|
AppContext.SetSwitch("Npgsql.EnableLegacyTimestampBehavior", true);
|
||||||
|
|
||||||
// setup the static resources (config/master api/translations)
|
// setup the static resources (config/master api/translations)
|
||||||
var serviceCollection = new ServiceCollection();
|
var serviceCollection = new ServiceCollection();
|
||||||
var appConfigHandler = new BaseConfigurationHandler<ApplicationConfiguration>("IW4MAdminSettings");
|
var appConfigHandler = new BaseConfigurationHandler<ApplicationConfiguration>("IW4MAdminSettings");
|
||||||
|
@ -71,11 +71,11 @@ steps:
|
|||||||
targetType: 'inline'
|
targetType: 'inline'
|
||||||
script: |
|
script: |
|
||||||
Write-Host 'Getting dotnet bundle'
|
Write-Host 'Getting dotnet bundle'
|
||||||
wget http://raidmax.org/IW4MAdmin/res/dotnet-bundle.zip -o $(Build.Repository.LocalPath)\WebfrontCore\dotnet-bundle.zip
|
wget http://raidmax.org/IW4MAdmin/res/dotnet-bundle.zip -o $(Build.Repository.LocalPath)\dotnet-bundle.zip
|
||||||
Write-Host 'Unzipping download'
|
Write-Host 'Unzipping download'
|
||||||
Expand-Archive -LiteralPath $(Build.Repository.LocalPath)\WebfrontCore\dotnet-bundle.zip -DestinationPath $(Build.Repository.LocalPath)\WebfrontCore
|
Expand-Archive -LiteralPath $(Build.Repository.LocalPath)\dotnet-bundle.zip -DestinationPath $(Build.Repository.LocalPath)
|
||||||
Write-Host 'Executing dotnet-bundle'
|
Write-Host 'Executing dotnet-bundle'
|
||||||
$(Build.Repository.LocalPath)\WebfrontCore\dotnet-bundle.exe $(Build.Repository.LocalPath)\WebfrontCore\bundleconfig.json
|
$(Build.Repository.LocalPath)\dotnet-bundle.exe $(Build.Repository.LocalPath)\WebfrontCore\bundleconfig.json
|
||||||
failOnStderr: true
|
failOnStderr: true
|
||||||
workingDirectory: '$(Build.Repository.LocalPath)\WebfrontCore'
|
workingDirectory: '$(Build.Repository.LocalPath)\WebfrontCore'
|
||||||
|
|
||||||
@ -104,7 +104,7 @@ steps:
|
|||||||
inputs:
|
inputs:
|
||||||
filename: 'Application\BuildScripts\PostPublish.bat'
|
filename: 'Application\BuildScripts\PostPublish.bat'
|
||||||
workingFolder: '$(Build.Repository.LocalPath)'
|
workingFolder: '$(Build.Repository.LocalPath)'
|
||||||
arguments: '$(outputFolder)'
|
arguments: '$(outputFolder) $(Build.Repository.LocalPath)'
|
||||||
failOnStandardError: true
|
failOnStandardError: true
|
||||||
|
|
||||||
- task: PowerShell@2
|
- task: PowerShell@2
|
||||||
@ -162,6 +162,11 @@ steps:
|
|||||||
archiveFile: '$(Build.ArtifactStagingDirectory)/IW4MAdmin-$(Build.BuildNumber).zip'
|
archiveFile: '$(Build.ArtifactStagingDirectory)/IW4MAdmin-$(Build.BuildNumber).zip'
|
||||||
replaceExistingArchive: true
|
replaceExistingArchive: true
|
||||||
|
|
||||||
|
- task: PublishPipelineArtifact@1
|
||||||
|
inputs:
|
||||||
|
targetPath: '$(Build.ArtifactStagingDirectory)/IW4MAdmin-$(Build.BuildNumber).zip'
|
||||||
|
artifact: 'IW4MAdmin-$(Build.BuildNumber).zip'
|
||||||
|
|
||||||
- task: FtpUpload@2
|
- task: FtpUpload@2
|
||||||
displayName: 'Upload zip file to website'
|
displayName: 'Upload zip file to website'
|
||||||
inputs:
|
inputs:
|
||||||
|
Loading…
Reference in New Issue
Block a user