Skip to content

Commit

Permalink
Try every 5s
Browse files Browse the repository at this point in the history
  • Loading branch information
kamronbatman committed Nov 21, 2024
1 parent 77a13b0 commit 5780d95
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion procDump.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,16 @@ Write-Host "Running schema generator"
$toolProcess = Run-Process "dotnet.exe" "tool run ModernUOSchemaGenerator -- ModernUO.sln"

Write-Host "Running procdump"
$dumpProcess = Run-Process "$procDumpFolder\procdump.exe" "-accepteula -ma -h $($toolProcess.Id) $procDumpFolder"
$dumpProcess = Run-Process "$procDumpFolder\procdump.exe" "-accepteula -ma -s 5 -n 5 $($toolProcess.Id) $procDumpFolder"

Write-Host "Waiting for proc dump exit"
while (-not $dumpProcess.HasExited) {
Start-Sleep -Seconds 1
}

Write-Host "Killing schema generator"
$toolProcess.Kill()

# Start-Sleep -Seconds 30
# $dumpProcess = Run-Process "$procDumpFolder\procdump.exe" "-accepteula -ma -h $($toolProcess.Id) $procDumpFolder"
# $dumpProcess.WaitForExit()
2 changes: 1 addition & 1 deletion publish.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,5 @@ echo dotnet publish %config% %os%-%arch% --no-restore --self-contained=false
dotnet publish %config% %os%-%arch% --no-restore --self-contained=false

echo Generating serialization migration schema...
powershell -ExecutionPolicy Bypass -File procDump.ps1 -procDumpFolder %~dp0/procDump
powershell -ExecutionPolicy Bypass -File procDump.ps1 -procDumpFolder %~dp0procDump
::dotnet tool run ModernUOSchemaGenerator -- ModernUO.sln

0 comments on commit 5780d95

Please sign in to comment.