refactor: update init.ps1 to run WSL installation in a background job and reorder software installations for improved clarity
All checks were successful
/ deploy_site (push) Successful in 3s

This commit is contained in:
2025-01-20 20:43:45 +09:00
parent c3243f6040
commit 943f49ea92

View File

@ -1,17 +1,18 @@
Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope CurrentUser Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope CurrentUser
Start-Process powershell -Verb runAs "Set-ItemProperty -Path REGISTRY::HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System -Name ConsentPromptBehaviorAdmin -Value 0" Start-Process powershell -Verb runAs "Set-ItemProperty -Path REGISTRY::HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System -Name ConsentPromptBehaviorAdmin -Value 0"
wsl --install --no-distribution Start-Job -ScriptBlock {
wsl --install --no-distribution
}
winget install ` winget install `
--disable-interactivity ` --disable-interactivity `
--accept-source-agreements ` --accept-source-agreements `
--force ` --force `
` `
Microsoft.WindowsTerminal ` DEVCOM.JetBrainsMonoNerdFont `
Microsoft.VisualStudioCode ` Microsoft.WindowsTerminal `
Zen-Team.Zen-Browser ` Microsoft.VisualStudioCode `
DEVCOM.JetBrainsMonoNerdFont
$ProgressPreference = 'SilentlyContinue' $ProgressPreference = 'SilentlyContinue'
Invoke-WebRequest -useb https://github.com/yuk7/ArchWSL/releases/latest/download/Arch.zip -OutFile Arch.zip Invoke-WebRequest -useb https://github.com/yuk7/ArchWSL/releases/latest/download/Arch.zip -OutFile Arch.zip