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
All checks were successful
/ deploy_site (push) Successful in 4s
This commit is contained in:
20
init.ps1
20
init.ps1
@ -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
|
||||
|
Reference in New Issue
Block a user