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:
18
.github/workflows/build.yml
vendored
18
.github/workflows/build.yml
vendored
@@ -678,6 +678,24 @@ jobs:
|
|||||||
# run : |
|
# run : |
|
||||||
# reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\AppModelUnlock" /t REG_DWORD /f /v "AllowDevelopmentWithoutDevLicense" /d "1"
|
# reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\AppModelUnlock" /t REG_DWORD /f /v "AllowDevelopmentWithoutDevLicense" /d "1"
|
||||||
|
|
||||||
|
- name: Nuke OneDrive (Prevent UI Interference)
|
||||||
|
if: runner.os == 'Windows'
|
||||||
|
shell: pwsh
|
||||||
|
run: |
|
||||||
|
Write-Host "Killing OneDrive process..."
|
||||||
|
Stop-Process -Name "OneDrive" -Force -ErrorAction SilentlyContinue
|
||||||
|
Write-Host "Uninstalling OneDrive..."
|
||||||
|
$setup64 = "$env:SystemRoot\SysWOW64\OneDriveSetup.exe"
|
||||||
|
$setup32 = "$env:SystemRoot\System32\OneDriveSetup.exe"
|
||||||
|
if (Test-Path $setup64) {
|
||||||
|
Start-Process -FilePath $setup64 -ArgumentList "/uninstall" -Wait -NoNewWindow
|
||||||
|
} elseif (Test-Path $setup32) {
|
||||||
|
Start-Process -FilePath $setup32 -ArgumentList "/uninstall" -Wait -NoNewWindow
|
||||||
|
}
|
||||||
|
# Give the OS a moment to clean up the UI before moving on
|
||||||
|
Start-Sleep -Seconds 5
|
||||||
|
Write-Host "OneDrive eradicated."
|
||||||
|
|
||||||
- name: Install NPM deps
|
- name: Install NPM deps
|
||||||
if: runner.os == 'Windows'
|
if: runner.os == 'Windows'
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user