mirror of
https://github.com/GAM-team/GAM.git
synced 2026-07-03 20:31:35 +00:00
Update build.yml
This commit is contained in:
6
.github/workflows/build.yml
vendored
6
.github/workflows/build.yml
vendored
@@ -704,7 +704,6 @@ jobs:
|
|||||||
if (-not (Get-Process -Name explorer -ErrorAction SilentlyContinue)) {
|
if (-not (Get-Process -Name explorer -ErrorAction SilentlyContinue)) {
|
||||||
Write-Host "Explorer not found. Booting the desktop shell..."
|
Write-Host "Explorer not found. Booting the desktop shell..."
|
||||||
Start-Process explorer.exe
|
Start-Process explorer.exe
|
||||||
|
|
||||||
# Give the desktop a few seconds to fully render the taskbar
|
# Give the desktop a few seconds to fully render the taskbar
|
||||||
Start-Sleep -Seconds 10
|
Start-Sleep -Seconds 10
|
||||||
} else {
|
} else {
|
||||||
@@ -713,9 +712,10 @@ jobs:
|
|||||||
Write-Host "Suppressing post-Explorer OneDrive popups..."
|
Write-Host "Suppressing post-Explorer OneDrive popups..."
|
||||||
# SAFE KILL: Only attempts to stop OneDrive if it is actually running
|
# SAFE KILL: Only attempts to stop OneDrive if it is actually running
|
||||||
Get-Process -Name "OneDrive" -ErrorAction SilentlyContinue | Stop-Process -Force
|
Get-Process -Name "OneDrive" -ErrorAction SilentlyContinue | Stop-Process -Force
|
||||||
# Nuke it from the current user's startup registry so it stays dead
|
# SAFE REGISTRY DELETE: Uses native PowerShell instead of reg.exe
|
||||||
reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Run" /v "OneDrive" /f 2>&1 | Out-Null
|
Remove-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Run" -Name "OneDrive" -ErrorAction SilentlyContinue
|
||||||
Write-Host "Desktop initialized and OneDrive suppressed."
|
Write-Host "Desktop initialized and OneDrive suppressed."
|
||||||
|
exit 0
|
||||||
|
|
||||||
- name: Install NPM deps
|
- name: Install NPM deps
|
||||||
if: runner.os == 'Windows'
|
if: runner.os == 'Windows'
|
||||||
|
|||||||
Reference in New Issue
Block a user