feat: enhance Windows initialization script with WSL installation and additional software
All checks were successful
/ deploy_site (push) Successful in 3s

This commit is contained in:
2025-01-20 19:24:04 +09:00
parent a73e00c0db
commit 10d9bed2be

View File

@ -1,11 +1,14 @@
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"
wsl --install --no-distribution
winget install `
--disable-interactivity `
--accept-source-agreements `
--force `
`
Microsoft.WindowsTerminal `
Mozilla.Firefox `
Microsoft.VisualStudioCode `
Hashicorp.Terraform `
@ -19,6 +22,7 @@ winget install `
ahmetb.kubectx `
ahmetb.kubens `
Docker.DockerDesktop `
Zen-Team.Zen-Browser `
DEVCOM.JetBrainsMonoNerdFont
New-Item -Path $profile -ItemType "file" -Force
@ -44,7 +48,7 @@ $env:PATH = "$env:PATH;C:\Program Files\Vim\vim91;"
'@ | `
Out-File -FilePath $profile
cd ~/Desktop
Set-Location ~/Desktop
$ProgressPreference = 'SilentlyContinue'
Invoke-WebRequest -useb https://releases.pmh.codes/cocktail.tar -OutFile cocktail.tar
@ -52,3 +56,6 @@ Invoke-WebRequest -useb https://releases.pmh.codes/koishi.zip -OutFile koishi.zi
tar -xvf cocktail.tar
Expand-Archive koishi.zip
Set-Service ssh-agent -StartupType Automatic
Start-Service ssh-agent