Update build.yml

This commit is contained in:
Jay Lee
2026-03-04 19:06:10 -05:00
committed by GitHub
parent da2298ae23
commit 645155a2ea

View File

@@ -704,7 +704,6 @@ 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 {
@@ -713,9 +712,10 @@ jobs:
Write-Host "Suppressing post-Explorer OneDrive popups..."
# 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
# SAFE REGISTRY DELETE: Uses native PowerShell instead of reg.exe
Remove-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Run" -Name "OneDrive" -ErrorAction SilentlyContinue
Write-Host "Desktop initialized and OneDrive suppressed."
exit 0
- name: Install NPM deps
if: runner.os == 'Windows'