|
|
|
@ -9,15 +9,10 @@ if(Test-Path dist)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
echo 'copy src to dist'
|
|
|
|
|
Copy-Item ./src/* ./dist -Recurse -Exclude @('./src/linux-x64/publish/log/*','.gitignore','dev.cmd','docker-compose.override.yml','nginx.dev.conf')
|
|
|
|
|
Copy-Item ./src/* ./dist -Recurse -Exclude @('.gitignore','dev.cmd','docker-compose.override.yml','nginx.dev.conf')
|
|
|
|
|
Remove-Item ./dist/linux-x64/publish/log/* -recurse -force
|
|
|
|
|
Remove-Item ./dist/linux-x64/publish/data/* -recurse -force
|
|
|
|
|
|
|
|
|
|
#$source = (Get-Item -Path './src').FullName
|
|
|
|
|
#$dest = (Get-Item -Path './dist').FullName
|
|
|
|
|
#$exclude = @('dev.cmd','docker-compose.override.yml','nginx.dev.conf')
|
|
|
|
|
#Get-ChildItem $source -Recurse -Exclude $exclude | where {$_.FullName -notlike (Get-Item -Path './src/linux-x64/publish/log/').FullName} | Copy-Item -Destination {Join-Path $dest $_.FullName.Substring($source.length)}
|
|
|
|
|
|
|
|
|
|
echo 'copy project files to dist folder'
|
|
|
|
|
Copy-Item ../projects/WebMVC/wwwroot ./dist/linux-x64/publish/apps/WebMVC/wwwroot -recurse
|
|
|
|
|
Copy-Item ../projects/WebSPA/wwwroot ./dist/linux-x64/publish/apps/WebSPA/wwwroot -recurse
|
|
|
|
|