2019-09-02 23:13:57 +08:00
|
|
|
|
function runCmd ($cmd) {
|
2019-05-29 17:54:58 +08:00
|
|
|
|
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-05-29 17:54:58 +08:00
|
|
|
|
|
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"
|
2019-05-29 17:54:58 +08:00
|
|
|
|
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"
|
2019-05-29 17:54:58 +08:00
|
|
|
|
write-host "copy file $dbFile" -ForegroundColor Cyan
|
|
|
|
|
xcopy $dbFile $publishFolder /y
|