mirror of
https://github.com/GAM-team/GAM.git
synced 2026-06-03 22:01:39 +00:00
Update build.yml
This commit is contained in:
6
.github/workflows/build.yml
vendored
6
.github/workflows/build.yml
vendored
@@ -704,15 +704,15 @@ jobs:
|
||||
if (-not (Get-Process -Name explorer -ErrorAction SilentlyContinue)) {
|
||||
Write-Host "Explorer not found. Booting the desktop shell..."
|
||||
Start-Process explorer.exe
|
||||
|
||||
# Give the desktop a few seconds to fully render the taskbar
|
||||
Start-Sleep -Seconds 10
|
||||
} else {
|
||||
Write-Host "Explorer is already running."
|
||||
}
|
||||
# NEW: Starting Explorer triggers Windows Startup apps, including OneDrive.
|
||||
# We must kill it again to ensure the SimplySign login window gets focus.
|
||||
Write-Host "Suppressing post-Explorer OneDrive popups..."
|
||||
Stop-Process -Name "OneDrive" -Force -ErrorAction SilentlyContinue
|
||||
# SAFE KILL: Only attempts to stop OneDrive if it is actually running
|
||||
Get-Process -Name "OneDrive" -ErrorAction SilentlyContinue | Stop-Process -Force
|
||||
# Nuke it from the current user's startup registry so it stays dead
|
||||
reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Run" /v "OneDrive" /f 2>&1 | Out-Null
|
||||
Write-Host "Desktop initialized and OneDrive suppressed."
|
||||
|
||||
Reference in New Issue
Block a user