refactor: streamline init.ps1 by removing WSL installation and consolidating software installation commands into a background job for improved clarity and efficiency
All checks were successful
/ deploy_site (push) Successful in 4s

This commit is contained in:
2025-01-20 21:06:46 +09:00
parent 2fd3c9f71d
commit 2e8175d678

View File

@ -2,18 +2,18 @@ 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-Job -ScriptBlock {
wsl --install --no-distribution
winget install `
--disable-interactivity `
--accept-source-agreements `
--force `
`
DEVCOM.JetBrainsMonoNerdFont `
Microsoft.WindowsTerminal `
Microsoft.VisualStudioCode `
Zen-Team.Zen-Browser
}
winget install `
--disable-interactivity `
--accept-source-agreements `
--force `
`
DEVCOM.JetBrainsMonoNerdFont `
Microsoft.WindowsTerminal `
Microsoft.VisualStudioCode `
Zen-Team.Zen-Browser
wsl --install --no-distribution
$ProgressPreference = 'SilentlyContinue'
Invoke-WebRequest -useb https://github.com/yuk7/ArchWSL/releases/latest/download/Arch.zip -OutFile Arch.zip