This commit is contained in:
John Kleinschmidt
2025-12-05 12:31:57 -05:00
parent 955743c40e
commit 93eba0403f

View File

@@ -154,12 +154,19 @@ jobs:
shell: powershell
run: |
# Check if WSL is installed
wsl --status || (
echo "WSL not found, installing..."
)
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
wsl --set-default-version 2 || echo "WSL already installed"
try {
wsl --status
Write-Host "WSL is already installed"
} catch {
Write-Host "WSL not found, installing..."
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
}
try {
wsl --set-default-version 2
} catch {
Write-Host "WSL already installed or version already set"
}
- name: Generate DEPS Hash
run: |
node src/electron/script/generate-deps-hash.js