BootstrapAdmin11/appveyor.build.ps1

15 lines
665 B
PowerShell
Raw Normal View History

2019-09-02 23:13:57 +08:00
function runCmd ($cmd) {
write-host $cmd -ForegroundColor Cyan
cmd.exe /c $cmd
}
2019-09-02 23:13:57 +08:00
runCmd "dotnet build src\admin\Bootstrap.Admin"
runCmd "dotnet publish src\admin\Bootstrap.Admin --configuration Release --no-restore"
2019-09-02 23:13:57 +08:00
$publishFolder = "$($env:appveyor_build_folder)\src\admin\Bootstrap.Admin\bin\Release\netcoreapp2.2\publish"
2019-09-05 15:24:04 +08:00
$licFile = "$($env:appveyor_build_folder)\src\admin\keys\Longbow.lic"
write-host "copy file $licFile" -ForegroundColor Cyan
xcopy $licFile $publishFolder /y
2019-09-02 23:13:57 +08:00
$dbFile = "$($env:appveyor_build_folder)\src\admin\Bootstrap.Admin\BootstrapAdmin.db"
write-host "copy file $dbFile" -ForegroundColor Cyan
xcopy $dbFile $publishFolder /y