Blockade fix (#3534)

* Fixes blockade

* Update main.ps1
This commit is contained in:
Real-MullaC
2025-08-05 16:29:14 +01:00
committed by GitHub
parent 3bd6003171
commit e2732da2db
2 changed files with 20 additions and 11 deletions

2
.gitignore vendored
View File

@ -54,3 +54,5 @@ winutil.ps1
.github/site/ .github/site/
binary/ binary/
.preprocessor_hashes.json

View File

@ -315,33 +315,40 @@ $sync["Form"].Add_ContentRendered({
# maybe this is not the best place to load and execute config file? # maybe this is not the best place to load and execute config file?
# maybe community can help? # maybe community can help?
if ($PARAM_CONFIG) { if ($PARAM_CONFIG -and -not [string]::IsNullOrWhiteSpace($PARAM_CONFIG)) {
Invoke-WPFImpex -type "import" -Config $PARAM_CONFIG Invoke-WPFImpex -type "import" -Config $PARAM_CONFIG
if ($PARAM_RUN) { if ($PARAM_RUN) {
# Wait for any existing process to complete before starting
while ($sync.ProcessRunning) { while ($sync.ProcessRunning) {
Start-Sleep -Seconds 5 Start-Sleep -Seconds 5
} }
Start-Sleep -Seconds 5 Start-Sleep -Seconds 5
Write-Host "Applying tweaks..." Write-Host "Applying tweaks..."
if (-not $sync.ProcessRunning) {
Invoke-WPFtweaksbutton Invoke-WPFtweaksbutton
while ($sync.ProcessRunning) { while ($sync.ProcessRunning) {
Start-Sleep -Seconds 5 Start-Sleep -Seconds 5
} }
}
Start-Sleep -Seconds 5 Start-Sleep -Seconds 5
Write-Host "Installing features..." Write-Host "Installing features..."
if (-not $sync.ProcessRunning) {
Invoke-WPFFeatureInstall Invoke-WPFFeatureInstall
while ($sync.ProcessRunning) { while ($sync.ProcessRunning) {
Start-Sleep -Seconds 5 Start-Sleep -Seconds 5
} }
}
Start-Sleep -Seconds 5 Start-Sleep -Seconds 5
Write-Host "Installing applications..." Write-Host "Installing applications..."
if (-not $sync.ProcessRunning) {
Invoke-WPFInstall
while ($sync.ProcessRunning) { while ($sync.ProcessRunning) {
Start-Sleep -Seconds 1 Start-Sleep -Seconds 1
} }
Invoke-WPFInstall }
Start-Sleep -Seconds 5 Start-Sleep -Seconds 5
Write-Host "Done." Write-Host "Done."